In the previous section, you learned how to manually implement routing with Redux and React without using a library. While this approach works, there are a couple issues with our solution:
- When creating a new route, we have to adjust the code in multiple parts of our project:
- In the Router component, where we decide which route shows which page.
- In the Navigation component, where we have to add a link to the new route.
- It is not possible to create more complicated routes, like a separate page for each post.
- It is not possible to link to a certain page via a URL. The current route is only stored in the Redux store.
- Route changes are not reflected in the browser history. This means that the user can't go back and ...