10 - Protected Routes and Authentication with React Router

preview_player
Показать описание

--
You'll often need to protect some pages of your application and display them only if the user is authenticated. So, in this lesson, you'll learn how to create a custom and reusable ProtectedRoute component to protect your routes using React Router.

Рекомендации по теме
Комментарии
Автор

This is outdated. Redirect is depreciated in react router

DaAznT
Автор

Why are you using outdated react router?

thebestchillsounds
Автор

New to react..how did you implement the sign in/out button? Mind sharing the code? ;)

De_Bryan
Автор

it would have been better if you provieded link to your github page

zeniths
Автор

How to create protected routes in react router v6?

IkhfanYusuf