← All freeCodeCamp videos

Protected Routes in React using React Router

346,584 views 5,865 likes 2018-10-16 15:40 Watch on YouTube ↗ freeCodeCamp ↗
FrontendReactReact Router

Chapters

No chapter markers in this video's description.

Show the creator's full description
In this video, we will create a protected route using React Router. This route is accessible only when the user is logged in. Link to CodeSandbox: https://codesandbox.io/s/ol6z72kjy9 Tutorial from Nick Karnik. Check out his YouTube channel: https://www.youtube.com/channel/UClCm-WAOgN6XLwCpefSVezg Nick on Twitter: https://twitter.com/theoutlander ❤️ Try interactive React courses we love, right in your browser: https://scrimba.com/freeCodeCamp-React (Made possible by a grant from our friends at Scrimba) -- Learn to code for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles on programming: https://medium.freecodecamp.org

Description and video by freeCodeCamp.org. This page is an independent companion view; the video is embedded from YouTube.