xxxxxxxxxx
# Client-side (React):
npm install @inertiajs/inertia @inertiajs/inertia-react
# Initalize the application:
import React from 'react'
import { render } from 'react-dom'
import { createInertiaApp } from '@inertiajs/inertia-react'
createInertiaApp({
resolve: name => require(`./Pages/${name}`),
setup({ el, App, props }) {
render(<App {props} />, el)
},
})