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
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.