React Router v5

3h 38m 49s
English
Paid

Course description

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

Read more about the course

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

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 47 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing

Watch Online React Router v5

0:00
/
#1: Introduction, Philosophy, and Tips

All Course Lessons (47)

#Lesson TitleDurationAccess
1
Introduction, Philosophy, and Tips Demo
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

Unlock unlimited learning

Get instant access to all 46 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription

Comments

0 comments

Want to join the conversation?

Sign in to comment

Similar courses

Build a Realtime App with React Hooks and GraphQL

Build a Realtime App with React Hooks and GraphQL

Sources: udemy
Master the latest and greatest features in React within the context of a full-stack, real-world app. A realtime, full-stack React app from scratch with a GraphQL Server (Apollo ...
4 hours 32 minutes 39 seconds
The Complete Guide to Advanced React Patterns (2020)

The Complete Guide to Advanced React Patterns (2020)

Sources: udemy
Build reusable React components without relying on if statements or more props! Use hooks & trusted advanced patterns!
6 hours 1 minute 51 seconds
Build and Deploy a SaaS AI Agent Platform

Build and Deploy a SaaS AI Agent Platform

Sources: Code With Antonio
In this video course, you will create a video call application with AI support from scratch. You will learn how to set up real-time video communication...
13 hours 24 minutes 14 seconds
Build a Shopping Cart App

Build a Shopping Cart App

Sources: Reed Barger
Gain expert skills to build and deploy an amazing React app. An epic training course that gives you the entire process to build and deploy your own top-tier e-c
1 hour 41 minutes 52 seconds