Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

React Router V6 Upgrade & Refactor Tutorial

Dave Gray via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This tutorial demonstrates upgrading and refactoring a React blog from React Router v5.2 to v6. It covers the new routing structure, layout and Outlet components, nested routes, navigation hooks, URL parameters, and testing the refactored application.

Syllabus

Intro
Welcome
Look at the docs
The Starter Project
Installing React Router Version 6
Updating the Index.js
Updating the App.js imports
useNavigate replaces useHistory
Adding a Layout Component
Adding Outlet index content
Nested Routes
Additional Routes
Review of the Routing Structure
Link and useParams
Testing the Refactored Code

Taught by

Dave Gray

Reviews

Start your review of React Router V6 Upgrade & Refactor Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.