This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
inspired from this article: https://omarelhawary.me/blog/file-based-routing-with-react-router/
the main file is src/pages/app.jsx which is the root path for the app. If you want to add a new page, just create a new folder in the src/pages directory. Create an index.jsx file inside that folder and add your component there. The route will be automatically created based on the folder name. For the component you can put inside views folder.