mirror of
https://github.com/kevin-DL/InertiaJS-Vue3-Tailwind-CSS-AdonisJS.git
synced 2026-01-11 19:04:27 +00:00
first commit
This commit is contained in:
11
resources/js/app.js
Normal file
11
resources/js/app.js
Normal file
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user