Upload beautify
This commit is contained in:
17
resources/js/upload.jsx
Normal file
17
resources/js/upload.jsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import './bootstrap'
|
||||
import React from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { createInertiaApp } from '@inertiajs/react'
|
||||
import UploadPage from './Pages/Upload/Index'
|
||||
|
||||
const pages = {
|
||||
'Upload/Index': UploadPage,
|
||||
}
|
||||
|
||||
createInertiaApp({
|
||||
resolve: (name) => pages[name],
|
||||
setup({ el, App, props }) {
|
||||
const root = createRoot(el)
|
||||
root.render(<App {...props} />)
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user