React Router v5

3h 38m 49s
English
Paid
February 16, 2024

The ability to take what you learn and apply it towards a production codebase.

More

Introduction, Philosophy, and Tips

You'll start the course off by looking at some housekeeping items like what you'll learn and what to expect.

Nested Routes

Nested Routes with React Router v5
(Quiz) Nested Routes
(Practice) Nested Routes
(Solution) Nested Routes

In this section you'll learn how to utilize nested routes with React Router v5.

Query Strings

Query Strings with React Router v5

(Quiz) Query Strings

(Practice) Query Strings

(Solution) Query Strings

In this section we'll break down how to implement and parse query strings with React Router v5.

Passing Props to Link

Pass props to React Router v5's Link component

(Quiz) Passing Props to Link

(Practice) Passing Props to Link

(Solution) Passing Props to Link

In this section you'll learn how ot pass props to React Router v5's Link component.

(Project) Hash History Basketball League

Introduction and starter files with Create React App

Starter Code

Initial Routes

Catch-all (404) route

Home Route

Sidebar Component

Player's Route

Team's Route

Team Page

Articles Route

Loading Component

Animating Players

Code splitting

Now that you know everything there is to know about React Router v5, now is the time to take that knowledge and apply it towards a real-world React application.

Protected Routes

Protected Routes and Authentication with React Router v5

(Quiz) Protected Routes

(Practice) Protected Routes

(Solution) Protected Routes

In this section, you'll learn how to create authenticated routes (routes that only certain users can access based on their authentication status) using React Router v5.

Bonus

Server Rendering with React and React Router v5

Fixing the 'cannot GET *url*' error in React Router

Recursive Paths with React Router v5

Here's some bonus content that doesn't fit into the normal flow of the course.

Why React Router v5?

Introduction and Philosophy behind React Router v5

(Quiz) Why React Router?

React Router v4 introduced a new dynamic, component based approach to routing. React Router v5 introduced some custom Hooks. In this section, you'll learn about the philosophies behind React Router and see a soft introduction to the API.

Passing Props

Passing Props to a component rendered by React Router v5

(Quiz) Passing Props

(Practice) Passing Props

(Solution) Passing Props

In this section you'll learn how to pass props to components being rendered by React Router v5.

404 Pages

Handling 404 pages (catch all routes) with React Router v5

(Quiz) Catch All Routes

(Practice) Catch All Routes

(Solution) Catch All Routes

In this section you'll learn how to implement catch all routes for handling 404 pages in a React app with React Router v5.

Sidebars
(Solution) Sidebars
(Practice) Sidebars
(Quiz) Sidebars
Rendering a Sidebar or Breadcrumbs with React Router

When building an app with React Router, often you'll want to implement a sidebar or breadcrumb navbar. In this section you'll learn how.

Animated Transitions
(Solution) Animated Transitions
(Practice) Animated Transitions
(Quiz) Animated Transitions
Animated Transitions with React Router v5

In this section you'll learn to how to add animated transitions to an app using React Router v5.

Preventing Transitions
(Solution) Preventing Transitions
(Practice) Preventing Transitions
(Quiz) Preventing Transitions
Preventing transitions with React Router v5

Many times when building an app with React Router v5, you want to warn the user before they navigate away from a specific route. An example of this would be when your user has dirtied a form and then wants to navigate away from that page. In this section, you'll learn how to do that.

Outro
Outro

What's next? We answer that in this section.

URL Parameters
(Solution) URL Parameters
(Practice) URL Parameters
(Quiz) URL Parameters
URL Parameters with React Router v5

URL parameters are a fundamental aspect of React Router and a fundamental aspect of building web applications. In this section, you'll break down the 'URL Parameters' example on the React Router v5 documentation to learn how you to effectively leverage URL parameters in your React app.

Programmatically Navigating
(Solution) Programmatically Navigate (Imperative)
(Practice) Programmatically Navigate (Imperative)
(Solution) Programmatically Navigate (Declarative)
(Practice) Programmatically Navigate (Declarative)
(Quiz) Programmatically Navigate
Programmatically navigate using React Router v5

When building an app with React Router v5, eventually you'll run into the question of navigating programmatically. Because of the churn that React Router has gone through in the last few years, there are a lot of outdated, and frankly incorrect tutorials out there. The goal of this section is to break down the correct approaches to programmatically navigating with React Router v5.

Ambiguous Matches
(Solution) Ambiguous Matches
(Practice) Ambiguous Matches
(Quiz) Ambiguous Matches
Ambiguous Matches with React Router v5

When using React Router v5, there are times when you may want to have both a static path like /settings along with a dynamic path like /:uid. The problem is that /settings is ambiguous and will match for both /settings and /:uid. In this section, we'll look at how to fix this ambiguous matches problem with React Router.

Customizing Link
(Solution) Customizing Link
(Practice) Customizing Link
(Quiz) Customizing Link
Customizing your own Link component with React Router

Because React Router v5 is just components, composing your own custom Link component is pretty straightforward. In this section we'll do just that.

Code Splitting
Code Splitting with React Router v5
(Quiz) Code Splitting
(Practice) Code Splitting
(Solution) Code Splitting

Code splitting has gained popularity recently for its ability to allow you to split your app into separate bundles your users can progressively load. In this section we'll take a look at not only what code splitting is and how to do it, but also how to implement it with React Router v5.

Route Config
Route Config with React Router v5
(Quiz) Route Config
(Practice) Route Config
(Solution) Route Config

React Router v5 moved away from a route config approach to routing to a component based approach. However, if you need it, you can still have a central route config with React Router. In this section you'll learn how.

Watch Online React Router v5

Join premium to watch
Go to premium
# Title Duration
1 Introduction, Philosophy, and Tips 03:22
2 Introduction and Philosophy behind React Router v5 04:55
3 URL Parameters with React Router v5 04:26
4 (Solution) URL Parameters 02:52
5 Nested routes with React Router v5 15:54
6 (Solution) Nested Routes 08:56
7 Pass props to a component rendered by React Router v5 01:41
8 (Solution) Passing Props 01:54
9 Programmatically navigate using React Router v5 04:45
10 (Solution) Programmatically Navigate (Declarative) 02:51
11 (Solution) Programmatically Navigate (Imperative) 01:43
12 Query Strings with React Router v5 04:04
13 (Solution) Query Strings 02:46
14 Handling 404 pages (catch all routes) with React Router v5 03:17
15 (Solution) Catch All Routes 02:33
16 Ambiguous Matches with React Router v5 03:30
17 (Solution) Ambiguous Matches 02:19
18 Pass props to React Router v5's Link component 02:25
19 (Solution) Passing Props to Link 01:52
20 Rendering a Sidebar or Breadcrumbs with React Router v5 05:05
21 (Solution) Sidebar 03:46
22 Customizing your own Link component with React Router v5 04:26
23 (Solution) Customizing Link 03:10
24 (Project) Hash History Basketball League Introduction 02:24
25 (Project) Starter Code 04:34
26 (Project) Initial Routes 04:43
27 (Project) Catch-all (404) route 01:10
28 (Project) Home Route 03:30
29 (Project) Sidebar Component 05:24
30 (Project) Players Route 09:55
31 (Project) Team's Route 06:00
32 (Project) Team Page 09:18
33 (Project) Articles Route 09:23
34 (Project) Loading Component 04:39
35 Animated Transitions with React Router v5 11:03
36 (Solution) Animated Transitions 03:25
37 (Project) Animating Players 03:38
38 Code Splitting with React.lazy and React Router v5 07:52
39 (Solution) React.lazy 01:39
40 (Project) Code split 01:37
41 Protected routes and authentication with React Router v5 11:52
42 (Solution) Protected Routes 05:05
43 Preventing transitions with React Router v5 05:09
44 (Solution) Preventing Transitions 02:51
45 Route Config with React Router v5 06:53
46 (Solution) Route Config 03:23
47 Outro 00:50

Similar courses to React Router v5

The complete React Fullstack course ( 2021 edition )

The complete React Fullstack course ( 2021 edition )udemy

Duration 76 hours 58 minutes 6 seconds
The essential guide to Firebase with React.

The essential guide to Firebase with React.udemy

Duration 31 hours 20 minutes 9 seconds
Crash Course: Build a Full-Stack Web App in a Weekend!

Crash Course: Build a Full-Stack Web App in a Weekend!udemy

Duration 12 hours 13 minutes 30 seconds
Modern React with Redux [2023 Update]

Modern React with Redux [2023 Update]udemyStephen Grider

Duration 37 hours 44 minutes 46 seconds
React Data Fetching: Beyond the Basics

React Data Fetching: Beyond the Basicsfullstack.io

Duration 2 hours 40 minutes 15 seconds
The React practice course, learn by building projects.

The React practice course, learn by building projects.udemy

Duration 43 hours 45 minutes 48 seconds
React and Django: A Practical Guide with Docker

React and Django: A Practical Guide with Dockerudemy

Duration 6 hours 50 minutes 20 seconds
Redux Saga

Redux Sagapluralsight

Duration 2 hours 54 minutes 54 seconds