How to Create Parameterized Routes

Developed with

The course is part of this learning path

ReactJS: Zero to Hero
Start course


This module looks at how to Route in React. You’ll be looking at linking components, creating dynamic links, parameterized routes, and how to install the React Router DOM.

Learning Objectives 

The objectives of this module are to provide you with an understanding of: 

  • How to install the React Router DOM 
  • Hooks in React  
  • How to create restful services  
  • How to use an Effect Dependency Array  
  • How to hand errors in data requests  
  • How to send data   

Intended Audience  

This learning path is aimed at all who wish to learn how to use the ReactJS framework.  


It is essential you understand the face of contemporary web development to attend this course. You should also have JavaScript experience, along with good HTML and CSS skills.


We welcome all feedback and suggestions - please contact us at to let us know what you think. 


- [Narrator] Remember, the routing is seen as part of the UI, so we can make any component render wall. That's what we've done as parts of the Filterable Courses Table and why the course component renders underneath it, so creating nested routes is easy. Just to finish off on the general routing, we've also added a route to the up component with the path of /courses on line 31 on the right hand side of the screen. This is so we match any route on the courses' path and don't follow our cultural redirect. We're about to parameterise routes. The thing that creates the parameterised routes, is in the path of the route component on line 86 on the left hand side of the screen. The path is just an evaluated template literal string. This the call on though is crucial. This makes this part of the path a parameter and this will be inserted by the link that calls the route. Under that, we just render a course component, passing in the course array as a prop. Now we have a link that supplies the parameter and a route that can recognize it. How do we make the course component aware of that value to display the correct course? That's coming up next.

About the Author
Learning paths6

An outstanding trainer in software development with more than 15 years experience as a Corporate and Apprentice Trainer, ICT Teacher and Head of Department, with a passion for technology and its uses. Continuing to develop existing and new skills and courses, primarily in web design using PHP, JavaScript, HTML, CSS and SQL but also OOP (Java), programming foundations (Using Python), DevOps (Git, CI/CD, etc) and Agile/Scrum. Practically minded, a quick learner and a problem solver with an attention to detail to ensure high quality outcomes.

Covered Topics