ReactJS: Private Routes with React Router and TypeScript

preview_player
Показать описание
In this video, we will create a protected route using React Router and TypeScript. This route will only be accessible when the user is logged in.I made the code as simple as possible to explain the concept and let you able to work with it immediately.

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

Replace Redirect with Navigate for anyone doing this in 2024.

TomFord
Автор

how to install rc extention in vs code ? what is the name of that extention ?

ardayldz
Автор

Next time try and zoom into the Editor/Make text larger

benedictmoeti
Автор

Had to downvote due to text size, it is unreadable on my phone.

Human_Evolution-
Автор

Thank you. Really good video for react beginner! :)

Bestlike
Автор

Do you any github for the source code?
Thank you

hendrawidjaja
Автор

hi, I made this with a cookie, but when i refresh, i always come back to my public page, if i'm on my private page, i would like to stay there. Do you know what the problem might be?

ericmartins
Автор

Please use a bigger font. I watch videos on my phone and can barely read the code.

DedicatedManagers
welcome to shbcf.ru