- Install the below package to implement the routing in the application.
npm i react-router-dom
- Routing configuration has been implemented in the App.tsx file for all the components.
- Route with parameter:
component/pages/AccessDefaultParameter.tsx: Accessing parameter from the URL. The parameter is being passed from the routing setup.
- Route without parameter:
component/pages/Department.tsx, component/pages/Employee.tsx, component/pages/Home.tsx, component/pages/Student.tsx