10.8 Routing
A single-page application thrives on the fact that the page isn’t reloaded in the browser so that its state remains in the memory. However, this persistence does not mean that all features of your application must always be visible or that you cannot navigate between individual views using links. The History API of the browser is usually used for this purpose. This API allows you to make changes to a URL path without reloading the page. React Router is the standard library when it comes to this kind of navigation in a React application and relies on the History API.
We can use React Router to separate list and form even more clearly. But first you must install the router. For this task, go to the command line and execute the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access