12. Multipage Apps with React Router

Learning Objectives

By the end of this chapter, you will be able to do the following:

– Build multipage single-page applications (and understand why this is not an oxymoron).

– Use the React Router package to load different React components for different URL paths.

– Create static and dynamic routes (and understand what routes are in the first place).

– Navigate the website user via both links and programmatic commands.

– Build nested page layouts.

Introduction

Having worked through the first eleven chapters of this book, you should now know how to build React components and web apps, as well as how to manage components and app-wide state, and how to share data between components (via props or context). ...

Get React Key Concepts 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.