Protected Routes in React Router v6

Protected Routes in React Router v6

Lester Fernandez

2 года назад

70,084 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

islamic world
islamic world - 22.09.2023 14:44

thanks

Ответить
person of something
person of something - 16.08.2023 21:50

Not showing face that covers half the screen, not showing myprotein add for 2 minutes, and straight to the point. Dropped an instant thumbs up

Ответить
Brec Alward
Brec Alward - 09.08.2023 02:12

You made this concise and straight to the point. It was also very easy to follow unlike many of the other videos I tried watching. Thank you

Ответить
Aikido_sensei
Aikido_sensei - 31.07.2023 14:46

Nice video….but bit too dark cant watch in the day

Ответить
Rahimoff
Rahimoff - 27.07.2023 23:40

how can I check accessToken on Local Storage and make my own private routes and public routes.

Ответить
Alb0z32
Alb0z32 - 24.07.2023 01:08

how do you prevent people who are logged in from going to the Login page?

Ответить
Viral Pain
Viral Pain - 15.07.2023 12:21

you are g bro nice explanation

Ответить
Anderson
Anderson - 30.06.2023 02:04

thank you for the video, it was very helpful 🙏👊👊

Ответить
s1nistr4
s1nistr4 - 01.06.2023 03:33

Doesn't work, axios / fetch runs before the function returns data so the function says it's not authenticated even though it is

Ответить
Pikachu
Pikachu - 16.05.2023 02:28

Thank You So Much straight to the point and really simple

Ответить
SUBHANSHU SAHANI
SUBHANSHU SAHANI - 08.05.2023 23:02

Thankyou so much. So easy and straight forward demo ♥️

Ответить
YEY BABY
YEY BABY - 06.05.2023 02:29

thank u very much. i really love the process of learning. I can much understand the concept if tried first then i dont understand it

Ответить
Yash Dev
Yash Dev - 10.04.2023 15:21

Ye fk u man❤️ u are awesome

Ответить
Daniel mangal
Daniel mangal - 03.04.2023 19:44

I tried it and if works! Thank you!!

Ответить
Daniel mangal
Daniel mangal - 03.04.2023 14:00

good video! I will try this this afternoon !

Ответить
Canal Tecnologias Futurísticas
Canal Tecnologias Futurísticas - 27.03.2023 00:56

Thanks bro, help me alot !

Ответить
Rachid B
Rachid B - 09.03.2023 12:31

Thank you very much !

Ответить
4R4 - Jan Emmanuel Maquiling
4R4 - Jan Emmanuel Maquiling - 01.03.2023 11:08

the most intuitive and easiest tutorial, thanks man

Ответить
Shawn Lee
Shawn Lee - 01.03.2023 06:08

thanks for the simple and useful example.
straights forward, clear real word implementation example in 4 min is not easy.

hope can see more video like this, help a lot of blur coder like me, to design a lock my door

Ответить
BisM
BisM - 23.02.2023 11:50

Precise

Ответить
Alexandre Mélega
Alexandre Mélega - 10.02.2023 19:55

Nice content!

Ответить
Dominik
Dominik - 09.02.2023 08:23

Thank you for making this straight forward and not this huge project with irrelevant info. 🐐

Ответить
Kasir Barati
Kasir Barati - 01.02.2023 12:24

Q: How we can hide the "Home Page" and "Account Page" too, I mean just authenticated users could see those links. Any idea?

Ответить
Олег Останин
Олег Останин - 31.01.2023 16:33

pure base

Ответить
David Slusser
David Slusser - 17.01.2023 17:04

so simple! thank you for sharing this

Ответить
I.sh.
I.sh. - 12.01.2023 04:52

Doesn't working when you need to make a request to the server, actually it does work but the unprotected screen is poping up foe a sec before the protected route is rerendered.

Due to the usage of an async code that forces you to use useEffect and useState hooks, which causes the first render to return the defult value of the state.

Ответить
Through the Telescope!
Through the Telescope! - 08.01.2023 11:01

I have done the same thing but mine does not work?

Ответить
Charbel Andary
Charbel Andary - 19.12.2022 21:28

bro thank you so much you saved my day after searching many tutorials please i have one question how to prevent browser back arrow from home to login page and vice ver ca

Ответить
chinonso Abraham
chinonso Abraham - 16.12.2022 09:07

very clean.

Ответить
CodeWise
CodeWise - 26.11.2022 22:44

Thank you ❤️

Ответить
Jahid Hasan
Jahid Hasan - 18.11.2022 11:11

straight to the point! Thanks man ❤

Ответить
Poke
Poke - 27.10.2022 00:55

goat

Ответить
Zahar Domolego
Zahar Domolego - 26.10.2022 19:31

Bro, you've just saved my time! Thanks a lot!!!

Ответить
Matthew - Full Stack Developer - Blockchain
Matthew - Full Stack Developer - Blockchain - 24.10.2022 16:47

but what if you need to trigger auth from another component?

Ответить
Matthew - Full Stack Developer - Blockchain
Matthew - Full Stack Developer - Blockchain - 24.10.2022 16:07

thanks man this other guys was fucking around thanks for making it easy.

Ответить
Human Evolution
Human Evolution - 14.10.2022 19:37

Looks good but can I see how it is actually connected to something like Google auth?

Ответить
Marie-Elize Venter
Marie-Elize Venter - 14.10.2022 08:45

Thanks! This tutorial really helped me grasp protected routes. I love the pace too.

Ответить
Fel
Fel - 04.10.2022 13:41

Surprised you only have 1.6k subs, you have some great content on this channel

Ответить
Mels Vagharshyan
Mels Vagharshyan - 11.09.2022 18:04

<Route element={<ProtectedRoutes/>}> (<-NO CLOSING TAG)
<Route path="/home" element={<Home />} />
<Route path="/account" element={<Account />} />
</Route> (<- ROUTE CLOSING HERE)

Ответить
Mels Vagharshyan
Mels Vagharshyan - 11.09.2022 16:50

Thanks brotheeer!

Ответить
Genos the Great
Genos the Great - 28.08.2022 17:02

Thank uuuuuu❤️

Ответить
Ismail
Ismail - 25.08.2022 19:31

Great video, Thank you

Ответить
Desi Web developer
Desi Web developer - 25.08.2022 12:29

sweet and simple i got what i was looking for .. thanks mann

Ответить
Martin Karugaba
Martin Karugaba - 23.08.2022 02:53

Thanks man, you helped me solve my problem.

Ответить
Vicinity VR
Vicinity VR - 17.08.2022 09:35

this doesn't work

react is giving me hooks errors.

Warning: Invalid hook call. Hooks can only be called inside of the body of a function component.

Ответить
Bruno
Bruno - 13.08.2022 06:30

congratulations

Ответить
Ashutosh Dhande
Ashutosh Dhande - 08.08.2022 19:09

crisp

Ответить
Adamu Fura Suleiman
Adamu Fura Suleiman - 03.08.2022 19:03

Straight to the point! I spent hours looking for simple and working solution. Thank you! Subbed

Ответить
marco antonio estrello guadarrama
marco antonio estrello guadarrama - 26.07.2022 19:30

Thanks!

Ответить
Alberto
Alberto - 27.06.2022 22:23

thanks bro, I am sudamerican and I have a course in Udemy in spanish. But that course is with react-router-dom V5, then I have problems with sintaxis and updates

Ответить