Тёмный
No video :(

Redirect After Login with React Router v6 

Lester Fernandez
Подписаться 2,9 тыс.
Просмотров 100 тыс.
50% 1

In this video I show you how to redirect users to the page they were trying to go to before they logged in. This is an easy way to enhance the user experience.
Code 👨‍💻
github.com/les...

Опубликовано:

 

22 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 61   
@kwanele_dev
@kwanele_dev 5 месяцев назад
short, precise and straight to the point but also very detailed. thank you for this
@elmilitar143
@elmilitar143 2 года назад
very good, short, precise and to the point, I would recommend defining the OnClick functions in separate handles so as not to mix HTML with javascript logic.
@bayazidarefin4670
@bayazidarefin4670 2 года назад
thank you so much ....... i already search in google more than 30 minutes but don't fix my problem but after watching your video i fixed this problem ........... thank you.....
@LesterFernandezIO
@LesterFernandezIO 2 года назад
That's awesome that you were able to find the solution :)
@jubaidhossain309
@jubaidhossain309 2 года назад
I was looking for this type of video for two days, Finally I found your video, Thank u Lester, Very useful content.
@LesterFernandezIO
@LesterFernandezIO 2 года назад
Thanks, I'm happy to help
@arifulhasan7042
@arifulhasan7042 11 месяцев назад
Really appreciate your short clips that are saving our valuable time
@NamTran-wq8bk
@NamTran-wq8bk 27 дней назад
i'm learning react, realy love your video
@wahidullahshadab2701
@wahidullahshadab2701 2 года назад
Keep it up, You are doing great. I was looking for a day till I find it.
@LesterFernandezIO
@LesterFernandezIO 2 года назад
Thank you, I'm happy you found the video
@marjanarami4484
@marjanarami4484 Год назад
after searching a lot, this tutorial solved my problem easily. Thanks a lot
@omkakatkar9003
@omkakatkar9003 2 года назад
Keep up the good work! The videos are small and on point
@marie-elizeventer7080
@marie-elizeventer7080 Год назад
Really good tutorial, not too technical for a beginner like me, but technical enough to learn!
@mdashik4455
@mdashik4455 Год назад
I was looking this concept for whole day..Thanks a lot :)
@JustPerfectDesigns
@JustPerfectDesigns 2 года назад
Hi. I love your contents. But I believe when you're on a series, you should always link back to the previous tutorial concerning that same series you're on. For instance, you spoke about the fact that on the previous lesson, the account page was protected and redirects users back to the login page. I believe there should be a link in the description pointing to the previous lesson/video just incase anyone would be interested like myself. Instead of going to your channel and searching for 8 months old video, one can just see the link from here. It's much better don't you think? You can also put it in the card above aswell. Overall, awesome content
@victorbadaro
@victorbadaro 2 года назад
thanks for the great content bro I use to make some mistakes using V6... your videos have helped me
@LesterFernandezIO
@LesterFernandezIO 2 года назад
I'm glad I could help
@siraftel7915
@siraftel7915 2 года назад
Damn you are amazing Short but to the point'. Totally worth it Hope you make it big bro. Keep it up
@LesterFernandezIO
@LesterFernandezIO 2 года назад
Thanks bro, I appreciate it ✊
@flaviacohen5129
@flaviacohen5129 9 месяцев назад
This video was so helpful! Thank you very much!!
@LeonnardoNascimento
@LeonnardoNascimento 2 года назад
i loved how your keyboard sounds haha
@chrisarmstrong5444
@chrisarmstrong5444 2 года назад
Thank you so much for this video, it has helped me loads. I do hope that you continue to make more great videos like this!
@ares9335
@ares9335 2 года назад
Great tutorial, very helpful explanation in contrast to other videos online!
@mohamedyoussef8835
@mohamedyoussef8835 2 года назад
Awesome - best explanation on RU-vid +++++++++++++++ 😃😃😃
@shawn.builds
@shawn.builds 2 года назад
fixed my bug, awesome thanks!
@shawn.builds
@shawn.builds 2 года назад
would highly recommend you write an article about this too, the documentation online regarding this tool isn't great
@deanuziel4545
@deanuziel4545 Год назад
Duddddd the sound of that keyboard is Epiccc !!! What keyboard you’re using ?
@jayaramsamavedam4670
@jayaramsamavedam4670 2 месяца назад
Very very very helpfull
@philiprudy1053
@philiprudy1053 2 года назад
great video, applies to javascript as a whole not just react, like keep track of the location from
@osman_akdag
@osman_akdag 2 года назад
Thanks for this video.
@Silently_Loud
@Silently_Loud 2 года назад
Thank you so much ❤️❤️❤️
@LesterFernandezIO
@LesterFernandezIO 2 года назад
Yup no problem
@luisedwards3534
@luisedwards3534 2 года назад
Me ayudo mucho tu video, aunque no exlicas lo del context... tambien me ayudaste a terminar de entenderlo, sigue asi hermano, muchas gracias.
@hectorg362
@hectorg362 2 года назад
Thank you for this!
@issambenhassine2016
@issambenhassine2016 2 года назад
short and helpfull
@broomybroomybroomy
@broomybroomybroomy 2 года назад
Ughhh, for some reason, my login page goes away after entering credentials and sends me to the home page; but if I click a link, it boots me back to the login page. The context isn’t persisting, I’m assuming it’s because of re-renders
@santhiyas8010
@santhiyas8010 Год назад
How I can navigate my users last time access page before login please tell me sir
@maherworld1
@maherworld1 2 года назад
Excellent job
@kamshinenjoeldewan3679
@kamshinenjoeldewan3679 Год назад
Thanks for this amzaing Video... pls how do I handle the display of a page only for first time users. eg an agreement page, once accepted, the user never gets to see the page again
@robertgrinder8206
@robertgrinder8206 2 года назад
There have been a lot of people that redirect bad programming into your system. So I prefer not to allow any access to systems. I have read plenty of bug reports. I don't like it 😜
@learner8084
@learner8084 Год назад
can we use Navigate and useNavigate interchangeably ?
@a7medalyousofi
@a7medalyousofi 2 года назад
Thanks for explain this point, but i have an issue in another part, i want to not allow the user to go to the login page or sign up page after login, how can i achieve that ?
@LesterFernandezIO
@LesterFernandezIO 2 года назад
Do conditional rendering in your sign up and log in page. If the user is logged in, render the navigate component
@nonsobarn3653
@nonsobarn3653 Год назад
can i get a link to the previous video the mentioned
@devruhul
@devruhul 2 года назад
After successfully redirect when i am going to reload this page then its going to login page, how can i solve this issue. I appreciate your help
@ahmadmuqadas78
@ahmadmuqadas78 8 месяцев назад
this is not v6 in v6 we use loader and redirect.
@BRM2RG
@BRM2RG 2 года назад
How would one use this if I’ve setup routes ? For example, I’m updating an old project to Es6, the routes were setup in es5 version, so I had to change them to: But, I can’t figure out how to convert the old es5 on the login from what normally looks like this : {user ? : } To a newer way of redirecting, I also understand I have to use Navigate instead of Redirect.. could you give some insight on this?
@LesterFernandezIO
@LesterFernandezIO 2 года назад
I'm actually editing a video right now where I touch on that topic more in depth. Essentially just replace Redirect with Navigate and you should be good to go brother.
@md.shoaibakhtershifat5151
@md.shoaibakhtershifat5151 2 года назад
Thanks a lot ❤️
@mohamedsamy2315
@mohamedsamy2315 2 года назад
autentication please for many user of many pages
@carkod
@carkod 2 года назад
This is still not covering some other situations, like failed log in, incorrect credentials etc... and if you are using Redux, you cannot return the state to onClick handler, it will come back as mapStateToProps
@LesterFernandezIO
@LesterFernandezIO 2 года назад
In the case of incorrect credentials or failed log in you can simply not navigate/redirect the user unless the credentials are verified on the back end. I don't use Redux but if you want to see a more in depth example with the React Context API you could check out my authentication video for the full stack chat app series. I will also be posting more authentication videos soon.
@codeblackfantasy8927
@codeblackfantasy8927 2 года назад
this is great!!!
@md.riduanulhaque5812
@md.riduanulhaque5812 2 года назад
thank you sir ....:-)
@rayspictures
@rayspictures 2 года назад
thanks!
@mdferdous5953
@mdferdous5953 2 года назад
what is your theme name? plz
@shamsul4432
@shamsul4432 2 года назад
thanks man,
@masudranahimu3783
@masudranahimu3783 Год назад
🥰🥰🥰🥰
@fedorbanaev5957
@fedorbanaev5957 2 года назад
top content
@DQSownahmoon
@DQSownahmoon 2 года назад
I sense a custom keyboard
Далее
СЛАДКОЕЖКИ ПОЙМУТ😁@andrey.grechka
00:11
💀СЛОМАЛ Айфон за 5 СЕКУНД😱
00:26
React protected routes in 4 minutes
4:03
Просмотров 10 тыс.
Redirect with useNavigate Hook - React Tutorial 24
7:30
How To Redirect in React Tutorial - V6+
9:17
Просмотров 56 тыс.
СЛАДКОЕЖКИ ПОЙМУТ😁@andrey.grechka
00:11