Skip to content

HsharmaCoding/10-React-Routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Routing using react-router-dom library.

  1. Install the below package to implement the routing in the application.

    npm i react-router-dom

  2. Routing configuration has been implemented in the App.tsx file for all the components.
  3. Route with parameter:

    component/pages/AccessDefaultParameter.tsx: Accessing parameter from the URL. The parameter is being passed from the routing setup.

  4. Route without parameter:

    component/pages/Department.tsx, component/pages/Employee.tsx, component/pages/Home.tsx, component/pages/Student.tsx

Please refer the attached information.txt and APP-DEMO file for more information.