Logo Awesome React

Awesome React

Protected routes and authentication with React Router v4

This is a video from TylerMcGinnis.com's "React Router" course. For the full course, visit https://tylermcginnis.com/courses/react-router.

For the full post, visit https://tylermcginnis.com/react-router-protected-routes-authentication/.

Protected routes are an important part of any web application. In this post we'll break down the "Redirects (Auth)" example on the React Router documentation to learn how to create authenticated routes (routes that only certain users can access based on thier authentication status) using React Router.