Routing
This project uses
react-router v6
as its base routing system. You can find all project's routes configuration in the
src/App.js
file. If you want to define a new route to the project, you can follow the steps below:
- Import your react component into
src/App.jsfile. - Use the
Routecomponent to define your new route. - Specify the path and component props for the
Routecomponent. - Add the new
Routecomponent to the project's rootRoutescomponent.
Note: Lazy loading is a great way to improve the performance of your React application. By loading components on-demand, you can avoid wasting time and resources on components that the user may never even see.