The course is part of this learning path
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.
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
This learning path is aimed at all who wish to learn how to use the ReactJS framework.
We welcome all feedback and suggestions - please contact us at email@example.com to let us know what you think.
We have a list of items, why don't we say courses. And you want to be able to display more information about a course when you click on its name in the list. Let's say for argument's sake, in a course component, how do we go about creating a link, and letting a course component know which course it's supposed to display. We're gonna solve this problem in several steps. First, we will dynamically create some links for each course name using the course's ID. Then, we'll add a route to render a path for each link created for the courses. Finally, we'll examine the course's ID in the path clicked to inform the course component which course it needs to display. But before we dive in to doing that, we need to look into the information that's passed along when a route is followed.