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 said in the intro that we wrap an application in a route component to enable routing. Router itself is a low-level interface, supplied by react-router-dom, and we generally use one of the high-level variations in an app. BrowserRouter uses the HTML5 history API to keep UI in sync with the URL. HashRouter users the hash portion of the URL to keep the UI in sync. MemoryRouter keeps the history of the URL in memory, which is useful in testing and in React Native. And StaticRouter. This never changes location, and is useful in sever-side rendering. Router can be used to synchronize custom history with state management library.