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.
To get started, we need to know where the routing components come from. The react-router-dom library that provides the components needed to route an application is not part of the create-react-app list of dependencies that we used to start our project. Therefore, we need to add it manually. This is done using the npm i react-router-dom command in the terminal. Just make sure you're pointing at the route of your project before you execute it. Once this is installed, you have access to all of the components and hooks this library contains.