- 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
-
Notifications
You must be signed in to change notification settings - Fork 0
HsharmaCoding/10-React-Routing
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Routing using react-router-dom library
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published