This is the initial release of the new @inertiajs/inertia-vue3
adapter. 🎉
npm install @inertiajs/inertia @inertiajs/inertia-vue3
yarn add @inertiajs/inertia @inertiajs/inertia-vue3
0.4.0
of the @inertiajs/inertia
package.import { createApp, h } from 'vue'
import { app, plugin } from '@inertiajs/inertia-vue3'
const el = document.getElementById('app')
createApp({
render: () =>
h(app, {
initialPage: JSON.parse(el.dataset.page),
resolveComponent: (name) => import(`@/Pages/${name}`).then((module) => module.default),
}),
})
.use(plugin)
.mount(el)