Laravel - Inertia - ReactJS

329 Views Asked by At

How to use Laravel - Inertia - ReactJS but using routing from ReactJS? The project is made into one folder, but uses the Restfull API concept. Basically I'm Back-End, so I've learn to be full stack dev.

I have tried using ReactJS Router but to no avail.

1

There are 1 best solutions below

2
On

inertiajs lets laravel handle routing, so what I suggest is to get your index page using Inertia::render() and then make the rest of the calls using Axios.