Routing in React with the Router Library
In this section we will get acquainted with a very interesting and important section when creating web applications - routing. It is thanks to routing that the user can move among many web pages depending on the actions or requests sent.
In this lesson we'll learn how to use the external library React Router to create React applications with routing.
React Route allows us to work with routing both on the client side (i.e. in the browser) and on the server side. It allows us to create complex single-page web applications that use navigation without refreshing the entire page (i.e. without additional requests to the server), and also to work with the browser history (back arrows).
React Router uses a component-based architecture, so this library allows you to navigate through multiple components of a React application, change the URL in the browser, and keep your application state in sync with the URL.