Files
InertiaJS-Vue3-Tailwind-CSS…/resources/js/app.js
2021-01-07 21:37:31 +04:00

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)