Docs
Installation
Installation
How to integrate another react router with your project
Install package
Create directory where all routes will contain
Open page.tsx
file and paste example code
Run CLI
By default it will create another-react-router.config.ts
at the same level as src
folder
See cli docs for more information
Add router provider component
To import routes
from another-react-router.config.ts you need to change your tsconfig.json
Or if you are using vite you need to change 2 files which is tsconfig.json
and tsconfig.app.json
and past code above
That's it
Now you can start your project and go to localhost:3000
and see that router is working perfectly!