Wire admin studio SSR and search infrastructure
This commit is contained in:
14
resources/js/artwork.jsx
Normal file
14
resources/js/artwork.jsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { mountInertiaRoot } from './bootstrap'
|
||||
import React from 'react'
|
||||
import { createInertiaApp } from '@inertiajs/react'
|
||||
import ArtworkPage from './Pages/ArtworkPage'
|
||||
|
||||
createInertiaApp({
|
||||
resolve: (name) => {
|
||||
const pages = { ArtworkPage }
|
||||
return pages[name]
|
||||
},
|
||||
setup({ el, App, props }) {
|
||||
mountInertiaRoot(el, App, props)
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user