Protected Routes in React using React Router

・1 min read

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.


Did you find this post useful? Show some love!
DISCUSSION (4)
 

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

 

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 😱.

 
 
Classic DEV Post from Sep 9 '18

Small bits of web UX

I'm not sure how to call those. This good tone for web experience

Nick Karnik
Computer Scientist | Hacker | Entrepreneur | Ex-Microsoft | YC | Teacher
Sign up (free forever)

dev.to is where software developers stay in the loop and avoid career stagnation.