Go Pro!

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Learn React Router 6

Unlock CourseGet started!

Join 3279 other students

Log in to get

Access to all our free courses
Interactive hands-on content
100s of code challenges
Join a friendly community
Unlock Course
Subscribe to access!Subscribe to access!

Subscribe to access to this course and ALL other courses. You get a 30-day money-back guarantee, no questions asked.

Subscription includes

All courses, bootcamps, paths
100s of coding challenges
Certificates of completion
Exclusive Pro members chat
The course creator Bob Ziroll

with Bob Ziroll

Course level: Intermediate

Learn React Router v6, the most popular routing library for React applications and one of the most downloaded React support libraries ever.

What's inside

This course contains 122 interactive screencasts spread across 6 modules.

two girls

You'll learn

What are SPAs?

Basic router setup

Route

Link

Route parameters

Nested routes and Outlet

Layout and Index routes

Relative paths

NavLink

Outlet context

Search parameters

Link state

404 page / Splat routes

Loaders

Actions

Form & form data

defer()

Await

Suspense

Error handling & errorElement

useRouteError

useNavigate

useNavigation

useLocation

useLoaderData

useActionData

Protected Routes

Deploying with Netlify

Using Firebase for data storage

You'll build

screenshot
VanLife

man

Prerequisites

Before taking this course, you should have a basic understanding of JavaScript and React. Below are our suggested resource to get you up to speed.

Meet your teacher

The course creator

Bob Ziroll

Head of Education at Scrimba. Passionate about learning 📚, helping others achieve their career goals 👩‍💻, tennis 🎾, woodworking 🪑, and my family 👨‍👩‍👦‍👦.

Follow me on twitter

Why this course rocks

In this 121-part course, you’ll learn the ins and outs of React Router v6, the most popular routing library for React applications and one of the most downloaded React support libraries ever.

React Router is the primary way most applications handle client-side routing, which allows React developers to create “single-page” web apps. Unlike the name might seem to imply, a “single-page” app is one that has many different web pages that are all handled by the React app directly on the client, without necessarily needing to make extra requests of the server every time the user navigates to a new page.

Instead of loading new pages for each route, a Single-Page App (SPA) updates the document that has already loaded in the browser to display the new information. This leads to an extremely snappy-feeling website that doesn’t have the tell-tale flicker of a site that loads a new HTML page on every route transition.

In this course, you’ll learn the most important parts of the React Router (v6) library while building an app called “VanLife”, an app for renting decked-out travel vans for your next road trip adventure.

This course is filled with interactive coding challenges, small and large, to help drill in the topics you’ll be learning, all while building the main VanLife project. Repetition and practice is the real way to avoid tutorial hell and build the muscle memory needed to truly understand what you’re learning.

So if you’re looking to escape tutorial hell, this course (and Scrimba courses in general) is the way to go!

Don’t forget: learning should never be lonely - that’s why we’ve set up the Scrimba Discord server. Make sure you drop in, say hello, and share your goals and achievements. If you get stuck, there is even a dedicated React help channel.

F to the A oracle to the Q
What even is React Router?

React Router is the most popular 3rd-party (I.e. not developed by the React core team) library for handling client-side routing. At its core, it’s a library built for conditionally rendering certain “pages” depending on the current URL route of the app. (E.g. example.com/about, example.com/contact-us, example.com/products/123, etc.)

Who uses React Router?

With over 10 million downloads per week, it’s safe to say React Router is used by most React applications that need to handle client-side routing. There are alternatives out there (most notably TanStack Router), but none of them are as ubiquitous as React Router at this time.

Who created React Router?

The React Router library was created and is maintained as open source software, primarily by Ryan Florence and Michael Jackson, prominent contributors and figures in the JavaScript community. Those same developers are the creators of a framework called Remix, which was recently purchased by Shopify. React Router plays a large role in the Remix framework, and has thus moved under the umbrella of code by Remix.