React Router v6 | Public and Protected Routes

React Router v6 | Public and Protected Routes

Fullstack Simplified

2 года назад

33,162 Просмотров

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


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

Aris Aris
Aris Aris - 07.01.2023 15:58

After literaly 1 month failling to build protected Routes, using outlet and protected component from shitty tutorials, now finally with your way works! Thank you!

Ответить
::INITER::37::37::
::INITER::37::37:: - 10.10.2022 04:44

note for me operator dan akan tampil jika semuanya bernilai true

Ответить
felipr dev
felipr dev - 23.09.2022 23:15

wow, that was really simplified and still functional, i think that this logic will fit my project, thanks a lot 🙏

Ответить
Clark Son
Clark Son - 03.09.2022 11:41

Thanks, i didnt know i can wrap code using &&. i was always doing { user ? : ... ) nice

Ответить
ZexDev
ZexDev - 16.08.2022 15:48

bro that cool, thx fo this video

Ответить
Alvin Yanson
Alvin Yanson - 30.07.2022 19:55

Thank you for the effort making this tutorial. Really helpful 👍

Ответить
Ratonconcigarro8612
Ratonconcigarro8612 - 02.07.2022 21:11

This video is so usefully, thanks my friend :D

Ответить
ProfeSkills
ProfeSkills - 26.06.2022 22:49

thank you :)

Ответить
Jay M
Jay M - 04.06.2022 16:00

Thank you. A lot! Saving the user state is what I have been looking for!

Ответить
Account
Account - 20.05.2022 18:11

One of the few tutorials that actually helped, thanks

Ответить
John Doe
John Doe - 19.05.2022 12:38

wonderful explanation.

Ответить
Tar Ik
Tar Ik - 15.05.2022 02:29

Hi, followed every step with same code but still ended up with losing localstorage after refreshing the page or when I go to the profile or dashboard page
tried everything in my beginner power but couldn't find the issue !
can you help me with any idea ?
my react router dome is 6.3.0 now

Ответить
DevCodeTools
DevCodeTools - 08.05.2022 14:42

Very useful ! Thanks for sharing.

Ответить
Augis, Chadie Gil S.
Augis, Chadie Gil S. - 03.05.2022 02:43

❤️❤️❤️❤️❤️❤️❤️

Ответить
Willy Horizont
Willy Horizont - 26.04.2022 02:07

Bahut badhiya super!

Ответить
UnicornDad
UnicornDad - 23.04.2022 16:16

thanks I implemented this in my hobbie project, works perfect!

Ответить
Thomas Soares
Thomas Soares - 15.04.2022 15:51

Strait to the point !! Thank you :-)

Ответить
Weslolo
Weslolo - 30.03.2022 10:23

Thank you!!!

Ответить
CryptoEdHub
CryptoEdHub - 29.03.2022 12:38

You are amazing, you saved me from heart attack 🥰🤞🏾😋

Ответить
gokul ap
gokul ap - 22.03.2022 22:55

While reloading a dashboard page it's redirects me to profile page. Will you help me 😊

Ответить
World Class Code
World Class Code - 20.03.2022 18:28

Great video! Contact me

Ответить
Soyayeb Hasan Shafin
Soyayeb Hasan Shafin - 17.03.2022 17:35

Thank you so much

Ответить
H__M
H__M - 17.03.2022 00:45

thank you very much!! amazing video !!!!🙂🙂

Ответить
Cynthia Onyilimba
Cynthia Onyilimba - 07.03.2022 18:09

Nice tutorial, but why the background music though?

Ответить
Ch Siva Naga Raju
Ch Siva Naga Raju - 02.03.2022 20:40

Hmm... You stood true to your channel name. Its definitely easy to follow what you have done.👌

Ответить
蹦太君
蹦太君 - 26.02.2022 06:40

wow so cool, this problem was confused me for a long time,but you explain so easy to understand!!!

Ответить
Contact Di
Contact Di - 25.02.2022 14:15

What's the background music? Can you please share the name. That's beautiful. And Obviously, your videos are super helpful

Ответить
Guilherme Matos
Guilherme Matos - 24.02.2022 22:38

Very helpful

Ответить
Mike Endsley
Mike Endsley - 22.02.2022 21:56

Great job, very clear and concise. Sub'd!

Ответить
Clement Lin
Clement Lin - 18.02.2022 06:25

This is gold!! Thanks for sharing the knowledge. Thumbs up and subscribed!

Ответить
Mihir Harshe
Mihir Harshe - 17.02.2022 14:07

Isn't verifying through a boolean value stored in localStorage really insecure as anyone can modify it?

Ответить
Adil Hashmi
Adil Hashmi - 17.02.2022 08:42

there is a problem in this code it is navigating us to the "/profile" on reloading

Ответить
Vaibhav Shetty
Vaibhav Shetty - 03.02.2022 21:04

Thank you so much so how can we use this for admin and user

Ответить
Mohamed kalid
Mohamed kalid - 03.02.2022 15:51

Nice Explanation bro, you make it easy 👌👌

Ответить
Samir Nayakawadi
Samir Nayakawadi - 21.01.2022 17:23

Subscribed.

Ответить
Daniel Tkach
Daniel Tkach - 20.01.2022 06:17

Fantastic! Can you explain how to work with the token expiration, and also how to work with roles, whether the role should be saved on the token, please.

Ответить
ジョルンガルボサ
ジョルンガルボサ - 15.01.2022 15:50

How about user role if admin or normal user. Because if I store in local storage it can be edited. How to make secure

Ответить
JAY TAILOR
JAY TAILOR - 12.01.2022 14:30

Brilliant short videos but detailed and quick just what we need

Ответить
Baran Öden
Baran Öden - 12.01.2022 02:39

You are the best and deserve more

Ответить
Evoteck
Evoteck - 11.01.2022 17:00

I got an infinite loop after doing this keeps saying I can't call a setstate inside use Effect hook

Ответить
Mickael Morel
Mickael Morel - 10.01.2022 17:09

it's super simple and not complicated but the problem is when i want to have a 404 page you already use the "*" so how i will create my 404 page ? :/

Ответить
Maxwel Ochieng
Maxwel Ochieng - 05.01.2022 14:57

Probably The Best Protected Routes I have Seen. But I have a suggestion for You is something that I am struggling with. I want to create a Website with Auth but after you log in we have a dashboard that contains nav links but everytime I include Link the Browser renders an empty page or the navbar disappears but I want the Nav bar to be static . I am beginner

Ответить
Engineer Maxwel
Engineer Maxwel - 05.01.2022 10:46

Its time you start making videos weekly I am your fan. Very simple and well explained, we owe you Monetization as your fan

Ответить
Braham Prakash
Braham Prakash - 29.12.2021 22:37

Exactly what i wanted
Thanks man

Ответить
Tuấn Anh
Tuấn Anh - 29.12.2021 07:30

thank you very much

Ответить
Narayan Bhagat
Narayan Bhagat - 27.12.2021 07:39

I am able to access the page like dashboard and profile using URL even after logout. how can I protect it ?

Ответить
SAYYED AAMER ASHAR ALI
SAYYED AAMER ASHAR ALI - 25.12.2021 10:05

Thanks brother this helps me a lot. 👍

Ответить
Akash Bose
Akash Bose - 15.12.2021 07:59

Nice to watch everything u explained ❤️

Ответить
Short Escapes
Short Escapes - 15.12.2021 05:10

Such an amazing video ✨

Ответить
Supriya Rawat
Supriya Rawat - 14.12.2021 09:07

The way you explain the thing is great 👍👍👍👍

Ответить