mirror of
https://github.com/kevin-DL/InertiaJS-Vue3-Tailwind-CSS-AdonisJS.git
synced 2026-01-11 10:54:25 +00:00
11 lines
311 B
JavaScript
11 lines
311 B
JavaScript
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 => require(`./Pages/${name}`).default,
|
|
})
|
|
}).use(plugin).mount(el) |