Great work! You’ve learned everything you need to know to add front-end routing to your React applications using React Router! To recap, you’ve learned how to:
react-router-domand add it to a React application.
- Enable routing by using
RouterProviderand providing a
- Creating a router using
createRoutesFromElements()to configure a router.
- Use the
Routecomponent to add static and dynamic routes to an application.
NavLinkcomponents to add links to an application.
- Access the values of URL parameters using React Router’s
- Create nested routes using
Outlet, and relative
- Declaratively redirect users by rendering React Router’s
- Imperatively redirect users via the
- Access and set the value of query parameters using React Router’s
Great job learning about React Router. You’ve learned a lot of about React Router’s core functionality. If you’d like to explore more you can check out the official docs here.
We encourage you to continue practicing what you’ve learned and experimenting with the React Router on your own.
Take this course for free