Chapter 7. Routing in React

This chapter covers

  • More advanced component design and use
  • Enabling multi-page React applications with routing
  • Building a router from scratch with React

In this chapter, you’re going to start making your app more robust and scalable by adding routing. Routing means users will be able to navigate to different sections of the app using URLs. The app has been limited to only one page until now, which would hamper growth when you add sections to it. Larger applications would especially suffer from overcrowding without routing or another mechanism to give the app manageable hierarchy. We’ll see how to solve this problem for your application using React. You’ll build a simple router from scratch in order to better understand ...

Get React in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.