React Router Tutorial - 15 - Authentication and Protected Routes

  Рет қаралды 151,017

Codevolution

Codevolution

Күн бұрын

Пікірлер: 192
@deiwman4604
@deiwman4604 10 ай бұрын
You made this whole section so simple to understand and to follow. I bought a course on udemy and the teaching way of the teacher it's not even close to yours. Thank you a lot!
@kumarsaroj18
@kumarsaroj18 2 жыл бұрын
I am happy to share that I finished this series in one whole day (of course, I did write code side by side). Although, I am still clueless on few router related things used in my project, but this is undoubtedly a good tutorial)
@bassam.2023
@bassam.2023 2 жыл бұрын
There are so many tutorials that I've started and never finished. However, I always complete Vishwas' tutorials. He stays on point! Tutorial Grand Master right here! Thank you!!!!😁
@Raul-si7bn
@Raul-si7bn 2 жыл бұрын
Thanks!
@BruceWayne-kw6xm
@BruceWayne-kw6xm 11 ай бұрын
This Channel is a Gold Mine.. i have learnt node , next js , react from it and every course was awesome
@masvimydeen249
@masvimydeen249 2 жыл бұрын
You are an awesome instructor. Breaking things simpler to understand is your real magic. Lovely tone, frequency and consistent voice delivery is also a reason, things the you explained in your video are getting easily registered. Keep rocking in this space.
@bijaysahoo9619
@bijaysahoo9619 8 ай бұрын
Couldn't ask for a better tutorial. You are a GEM. Each aspect is crisp and clear. Even a paid course is no match for this. Thank you very much. Looking forward to each of the tutorial series.
@dhruv.pandey93
@dhruv.pandey93 2 жыл бұрын
The most informative series on React Router Dom and that too latest version v6. Covers minor but important details like useLocation, and useSearchParams. Great playlist as expected!!
@thucle4122
@thucle4122 Жыл бұрын
Thank you Sir Vishwas, i coded along with you and found it really easy to grasp the basic concepts of React Router V6 whose documentation is not quite understandable. Wish you health and prosperity.
@rishabhsharma6084
@rishabhsharma6084 2 жыл бұрын
what a coincidence.. I was implementing protected routing in my new project🤘🤘😁
@chidyommy284
@chidyommy284 4 ай бұрын
Great playlist bro, it's the only tutorial on KZbin about React router that is explained in great details
@isaacjon
@isaacjon 2 жыл бұрын
didnt understand a lot, but anyways so far i learned so much with your help, just commented this because i wanted you not to stop anytime from this kind of tutorials, but i would like to see tutorial about tutorial hell from you
@learnkidsonline9732
@learnkidsonline9732 2 жыл бұрын
Best teacher! Simple examples! Best Tutorials!
@mehdihosseinpour3351
@mehdihosseinpour3351 2 жыл бұрын
Great. It is the best video I've ever seen for protected route. I think you can improve it with adding multi role authorization as well as JWT authentication to it.
@iamnirupampal
@iamnirupampal 3 ай бұрын
Because of you i learned the react-router-dom thank you for your efforts
@googlemani
@googlemani 2 жыл бұрын
Thanks Viswas. Another great series in React Ecosystem. Exercises are small enough to focus more on the Router aspects. Well explained. Great Work 👏
@nargeshaeri7028
@nargeshaeri7028 Жыл бұрын
Thank you so much for explaining everything so clearly and in details. I really do not know how to express my gratitude. I have watched a lot of your tutorials and I found them really helpful. I wish you the best.
@lakshaysingh1866
@lakshaysingh1866 2 жыл бұрын
Watched the complete course in one day...thanx buddy!☺
@mrnabby4178
@mrnabby4178 Жыл бұрын
Finally a proper and right video. Thank you sir.
@alokranjan476
@alokranjan476 2 жыл бұрын
Thanks a lot for whole series. You explained it really well in easy to understand language with appropriate example. Request to post such series in future.
@alexuqt
@alexuqt Жыл бұрын
Wow I just finished watching the 15 videos and is this really is so good
@kaempy
@kaempy Жыл бұрын
Wow thanks so much Vishwas your content are always easy to understand and rich 🙏
@squeezy99
@squeezy99 Жыл бұрын
What a super series of videos - helped me enormously with a routing problem I had. Thanks for posting.
@akashvenu359
@akashvenu359 Жыл бұрын
Thank you for explaining so elaborately.. this will definitely help me with my interviews
@ashutoshranjan4644
@ashutoshranjan4644 Жыл бұрын
It was 🤯. I explored different dimensions of react router dom. React is really powerful!!!
@saurabrakshit405
@saurabrakshit405 2 жыл бұрын
Yes you have not disappointed any one ! Very well structured tutorial for React Router Library. But I want to mention I would be pleased if you have taught the Authenticated Routing with Username & Password Authentication.
@paritosh3702
@paritosh3702 2 жыл бұрын
It's very similar to this, a bit complex though but the flow is same
@VivekThakur-sf9pr
@VivekThakur-sf9pr 2 жыл бұрын
For demo purpose we can set the user and password and during login we can check with if condition that whether its correct or not, if its correct match than proceed to navigate where u can.
@musiclovers8488
@musiclovers8488 2 жыл бұрын
hey Vishawas.. Thanks for these videos. Really appreciable work... you are best.
@vino7tech
@vino7tech Жыл бұрын
Thank you very much sir for wonder React Router Tutorial. The best Complete React js Tutorial KZbin channel
@Noone-lh5rv
@Noone-lh5rv Жыл бұрын
finally, someone teach me about React properly
@eniolabakare5100
@eniolabakare5100 2 жыл бұрын
Amazing tutorial series, as always. Thank you, Vishwas
@ravikantchauhan2106
@ravikantchauhan2106 Жыл бұрын
Really helpful tutorial. bole to ek dam Jhakkas 😎
@balloobhaiya
@balloobhaiya Жыл бұрын
i highly recommend to watch this
@incognito_2512
@incognito_2512 Жыл бұрын
thank you so much. your turorials are most easy to understand
@vigneshwarvenugopal922
@vigneshwarvenugopal922 Жыл бұрын
Thank you so much for your effort sir....i really gained more knowledge on and about ReactJs and now i can fearless develop the project on it....Once again ....Thank you So Much....
@Raul-si7bn
@Raul-si7bn 2 жыл бұрын
this series is just a (huge) hidden gem. No others series I've seen are this through, and with very good examples. That about React Router V6, but also, the style in general , the easy approach...i've seen many tutorials, since I am always looking for good and updated examples, and I can safely say, this is one of the best I've come across .. Keep up the good work! Implement Context , explain Redux (with toolkit maybe), firebase, firestore ...then MERN ..waiting for all of those! :D
@arunkb6452
@arunkb6452 2 жыл бұрын
Ohh Buddy... Timing completed previous videos just now... ❤❤❤❤❤
@frontend_ko
@frontend_ko 2 жыл бұрын
The best teacher, thank you!
@lvhz
@lvhz Жыл бұрын
Excellent series. Thank you!
@jacobwwarner
@jacobwwarner Жыл бұрын
I was able to get something that worked using this technique with a Redux store. Thanks
@kwwong1834
@kwwong1834 Жыл бұрын
Thanks Viswas, really great content!
@wilwazka2957
@wilwazka2957 2 жыл бұрын
Powerful and yet so easy to understand. Thank you a lot.
@wisdomelue
@wisdomelue 2 жыл бұрын
this video is so awesome, loved the fact that you used the context API, thank you.
@dandantin
@dandantin Жыл бұрын
Thank you for this video! Congratulations my friend!
@deniserodriguez3233
@deniserodriguez3233 2 жыл бұрын
So from my understanding, navigate() should only be called inside a trigger action or inside a useEffect. Otherwise you get an error on the console telling you that you need to call navigate() inside React.useEffect(). However, I didn’t get this error when I used . So I guess that is the only difference between using navigate(‘/login’); over .
@revo572
@revo572 2 жыл бұрын
Thank you for giving such a quality content for free
@eleah2665
@eleah2665 2 жыл бұрын
You have not disappointed me!
@es7729
@es7729 8 ай бұрын
It was an awesome playlist! Thank you!
@VivekanandKadole
@VivekanandKadole Жыл бұрын
proper and right way to understood
@jasono873
@jasono873 Жыл бұрын
Big big Thank you 🙏
@rajasankar1390
@rajasankar1390 Жыл бұрын
Amazing Tutorials. All the videos are Gem. Thank You
@dyg6945
@dyg6945 Жыл бұрын
Thanks for these videos! That were simple and perfect!
@shaantalk
@shaantalk 2 жыл бұрын
Great work Vishwas
@muhammadzeeshan07
@muhammadzeeshan07 5 ай бұрын
A very important and well explained video Thanks bro
@ProgramingWithSaman
@ProgramingWithSaman 2 жыл бұрын
thank you dear vishwas ...you are an awesome dude
@macdonaldmanana1358
@macdonaldmanana1358 4 ай бұрын
Amazing work, thanks!
@cocoon1538
@cocoon1538 Жыл бұрын
I don't know if this is handled in a later tutorial, but the auth logic provided in this tutorial is not 100% secure by itself as anyone can modify "user" state in their browser to access protected routes. I understand that it is React (front-end) tutorial, but just a heads up that you might want to add an extra layer of security if using this in production.
@S4sent
@S4sent 2 жыл бұрын
Guru ji 🙏🙏🙏 awesome content 😍😍
@hemonterroddur6948
@hemonterroddur6948 2 жыл бұрын
Thank you so much for this wonderful tutorial. It helps me a lot.
@javeedakhter324
@javeedakhter324 2 жыл бұрын
Hi Vishwas,you videos are awesome you are doing a great job we also want your tutorials on webpack,gulp and other similar tools which help to avoid repetitive task in development and production. Thank you .
@rajadastidar3765
@rajadastidar3765 2 жыл бұрын
bro you are a very good developer
@pankajsuryavanshi8332
@pankajsuryavanshi8332 Жыл бұрын
Let say we have params route like /product/:id how to protect this if product id is not present it will return empty structure.we have to throw error in this case
@kashifumar4552
@kashifumar4552 2 жыл бұрын
Till now the best one. Plz maintain this
@FrankieMendoza
@FrankieMendoza 2 жыл бұрын
Thank you for this tutorial.
@amiiko232
@amiiko232 9 ай бұрын
i love you bro you saved my life
@aakashyadav6228
@aakashyadav6228 Жыл бұрын
No hate to hitesh, but your tutorials are way more great
@jerickgeronimo282
@jerickgeronimo282 Жыл бұрын
do u have a github repo for this specific proj?
@dhokiarinidh9809
@dhokiarinidh9809 Жыл бұрын
Thank you so much, very informative videos
@rahulnag9582
@rahulnag9582 Жыл бұрын
{replace:true} is not working ? did anyone faced this issue ?
@shivangidimri4639
@shivangidimri4639 2 жыл бұрын
Why are you using navigate() in one place and component in the other ? What is the difference?
@jaybeatz8084
@jaybeatz8084 Жыл бұрын
bro, thanks! you explained it clear
@krishnareddyyerram4615
@krishnareddyyerram4615 Жыл бұрын
Thanks Viswas!
@deepanraj8908
@deepanraj8908 Жыл бұрын
How to use a useContext hooks in non react functional please explain 5:49
@gopalakrishnanshanmugam7236
@gopalakrishnanshanmugam7236 Жыл бұрын
Great Sir Thank you. Very helpfull tutorial
@tusharpatil5060
@tusharpatil5060 2 жыл бұрын
Hello Vishwas why have you not used useNavigate hook in RequireAuth.js
@srirammj1083
@srirammj1083 2 жыл бұрын
Hi sir, On reloading the protected route page ( let's say profile) the browser redirecting to login page with setting user as null (checked user state in browser -> inspect -> components -> authProvider -> state) but I want to stay in profile page even after reloading. If i use localStorage/cookie and setUser initially on useState, then anyone can set local storage/cookie user value and can have access to profile page. Please help me how to have completely protected route with stay on profile page even after click on refresh/reloading page🙏🏻. (Thank you for your excellent teaching)
@thanushkanth2257
@thanushkanth2257 2 жыл бұрын
Having the same issue..!!
@reginaldamedee7433
@reginaldamedee7433 2 жыл бұрын
Thank you for this lesson! liked & subscribed!
@datkumar1024
@datkumar1024 2 жыл бұрын
Thanks a ton brother!!💯💯💯
@youssef-attai
@youssef-attai Жыл бұрын
Thank you so much, that was really helpful.
@benarcher372
@benarcher372 2 жыл бұрын
Thank you so much for these valuable videos!
@TheDEMMX
@TheDEMMX Жыл бұрын
Thank you Is there a repo with this code at the end of the course? The one on gihub only the first lesson
@fpsstupor
@fpsstupor 2 жыл бұрын
thanks for this series
@blokeish
@blokeish 2 жыл бұрын
Auth cannot be used in a class component. I get an error regarding calling hooks from within a class component.
@danielnicholas1747
@danielnicholas1747 2 жыл бұрын
thank you very much for this series
@binyaminregev7344
@binyaminregev7344 10 ай бұрын
The last test in React Router Tutorial - 15 - Authentication and Protected Routes time 17:20 doesn't work for me. Using React 18.2.0 ; react-dom 18.2.0 ; react-router 6.22.0 It's the second series of videos from you I am doing, they are simple, easy to follow and code side by side I learn. This is why I raise this so if I am doind something worng or you need to update something in the video (as of February 15th, 2024 it's marked from 2 years ago).
@alik64
@alik64 2 жыл бұрын
Thank for this playlist! 🙌 very helpfull !
@Itsmeyouknow525
@Itsmeyouknow525 2 жыл бұрын
Hey Anyone Here the children prop refers to the component we are going to wrap with the authProvider right?
@rayusaki88
@rayusaki88 2 жыл бұрын
Thank you very much! Very helpful!
@MrNoeLeiva
@MrNoeLeiva Жыл бұрын
amazing tutorial man
@rachidb9624
@rachidb9624 2 жыл бұрын
Thank you very much for this tutorial, was very helpful !
@shineLouisShine
@shineLouisShine Жыл бұрын
Awesome. Thanks a lot. 13:!3 - It's a shame that you aren't really explaining why this time you choose the Navigate component Instead of the useNavigate hook like you did in all the other places in the code. Or - why did you prefer to use the hook in all the other places and not the component. You had some really good opportunities to explain... It leaves me wondering... when should we use which.
@damilolaomotola7269
@damilolaomotola7269 Жыл бұрын
Great work!! But how do i keep user login even after refresh???
@chaddwick25
@chaddwick25 2 жыл бұрын
What is someone navigates to the login page via url in the address-bar ? Does replace in the navigation fix that usecase ?
@kranthikumar5215
@kranthikumar5215 2 жыл бұрын
Sir if i wrap all the routes in the authprovider nothing is displayed in the browser
@Hrushikeshkswami
@Hrushikeshkswami 2 жыл бұрын
Hello same problem I am also facing
@Hrushikeshkswami
@Hrushikeshkswami 2 жыл бұрын
Is your problem solved?
@kranthikumar5215
@kranthikumar5215 2 жыл бұрын
yes solved
@kranthikumar5215
@kranthikumar5215 2 жыл бұрын
you have to install latest version of react router dom
@Hrushikeshkswami
@Hrushikeshkswami 2 жыл бұрын
I am already using latest version
@jimmy4262
@jimmy4262 2 жыл бұрын
When I try to browse the Login page I get this error: "Error: useNavigate() may be used only in the context of a component."
@hey_prompty
@hey_prompty Жыл бұрын
Line 25:23: 'AuthContext' is not defined
@sdm634
@sdm634 Жыл бұрын
Is there a way to prevent the login page from rendering after the user login? If type the path to login in browser the page appears
@selvam3646
@selvam3646 2 жыл бұрын
Can we use useNavigate hook instead of navigate?
@shvideo1
@shvideo1 2 жыл бұрын
The "user" context variable values after "logging in" is null (at 00:11:48 point). I checked everything. Don't know why it's not being passed to the Profile page. Figured it out! I My app does not have a navbar. I was appending "/profile" to the root URL and I read in a post after some research that doing it this ways refreshes the app and the context is cleared. Thank you Vishwas for your great videos.
@hilalingereza4297
@hilalingereza4297 2 жыл бұрын
Experiencing the same issue
@amulagrawal1703
@amulagrawal1703 2 жыл бұрын
I am facing the same problem, can you help me ?
@krantikumarreddykommidy7294
@krantikumarreddykommidy7294 Жыл бұрын
@@amulagrawal1703 did you resolve the issue ?
@TheBindasSingh
@TheBindasSingh 2 жыл бұрын
Bahut shandar, gajab.
@marcr1118
@marcr1118 11 ай бұрын
but works this even if you reload the page?
Custom Protected Route Component in React
10:58
Cosden Solutions
Рет қаралды 51 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
Learn React Router v6 In 45 Minutes
46:20
Web Dev Simplified
Рет қаралды 575 М.
React protected routes in 4 minutes
4:03
Appwrite
Рет қаралды 26 М.
All useEffect Mistakes Every Junior React Developer Makes
22:23
Learn Next.js 15 Routing Files in 30 Minutes
33:37
Codevolution
Рет қаралды 15 М.
Speed Up Your React Apps With Code Splitting
16:50
Web Dev Simplified
Рет қаралды 396 М.