mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-01-19 17:34:43 +00:00
19 lines
409 B
JavaScript
19 lines
409 B
JavaScript
import { InertiaApp } from '@inertiajs/inertia-react'
|
|
import React from 'react'
|
|
import { render } from 'react-dom'
|
|
|
|
const app = document.getElementById('app')
|
|
|
|
render(
|
|
<InertiaApp
|
|
initialPage={JSON.parse(app.dataset.page)}
|
|
resolveComponent={name => import(`@/Pages/${name}`).then(module => module.default)}
|
|
/>,
|
|
app
|
|
)
|
|
|
|
// This is required to enable HMR
|
|
if (module.hot) {
|
|
module.hot.accept();
|
|
}
|