Routing
In the previous chapter, you learned how to write tests with Jest for all the elements of our Redux application.
Until now, our application only consisted of a single page. Most growing applications, however, use multiple pages to ensure the user interface does not get too cluttered. For example, let's assume we want to add some information about the blog, like an About section. As this information is not always important to the user, it would not make sense to always display it on the main page. Hiding the information with our HiddenContent component would work, but be a bit clumsy if we wanted to add other kinds of content/pages later. To be able to use multiple pages, we are going to implement a router in our application. Furthermore, ...
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