React Router

React, unlike Angular, is a library instead of a framework, meaning specific functionalities (for example, routing propTypes) are not part of the React core. Instead, routing is handled by a third-party library called React Router.

In this chapter, you will see how to implement React Router in your application, and by the end of the relevant sections, you will be able to add dynamic routes and understand how React Router works.

In this chapter, we will cover the following topics:

  • Understanding the differences between the react-router, react-router-dom, and react-router-native packages
  • How to install and configure React Router
  • Adding the <Switch> component
  • Adding the exact property
  • Adding parameters to the routes
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset