DEV Community

0 seconds of 15 minutes, 39 secondsVolume 90%
Press shift question mark to access a list of keyboard shortcuts
00:00
00:00
15:39
 
Nick Karnik
Nick Karnik

Posted on

13 4

Protected Routes in React using React Router

In this video, we will learn to create a protected route using React Router. This route is accessible only when the user is logged in.

Link to CodeSandbox
Link to Video on Youtube


If this video was helpful, ❤️ it and subscribe to my YouTube channel.


Top comments (6)

Collapse
 
janpauldahlke profile image
jan paul

Pretty solid and understandable. i watched it on 1.25 x speed, but i know react-router already. 10/10 would watch again ;-)

Collapse
 
theoutlander profile image
Nick Karnik

Thanks, @janpauldahlke , for the feedback!

I agree that watching at faster speeds is a good idea if you know react-router. I've been speaking slowly since users can always speed it up. I watched it at 2x and still found it a bit slow for my taste 😱.

Collapse
 
arobert93 profile image
Alexandru Robert

Well done!

Collapse
 
reactuser02 profile image
reactuser02

Thanks for the interesting video.

Collapse
 
patrickb profile image
Patrick Bradshaw

This is a gem, thank you

Collapse
 
gimnathperera profile image
Gimnath Perera

Very helpful. Keep up the good work

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay