Routing
Client-side routing with React Router.

Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026

The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.


Single-page applications need client-side routing to navigate between views without full page reloads. React Router is the standard solution for routing in React apps.

In this section you’ll learn how to set up React Router, create routes, handle navigation, and pass data between routes.

Lessons in this unit:

0: ▶︎ Introduction
1: Introduction to React Router
2: React Router, how to get data from a dynamic route
3: How to pass props to a child component via React Router
4: The Reach Router Tutorial
5: React Router, why useLocation and useHistory might return undefined