This is one of the most clear and concise tutorials on how to do protected routes within React, thank you Dipesh!
@DipeshMalvia3 жыл бұрын
Glad it was helpful!
@Taha26132 жыл бұрын
So many videos are there , but this one gave the clear idea about how to make this work. Great job man, Thank you for this and keep making such videos.
@blacksheep13373 жыл бұрын
Thanks for the content Dipesh Greetings from Brazil!
@chitrangadapradhan55352 жыл бұрын
I watched a lot of videos on this concept and this one is the best. Good job there!
@DipeshMalvia2 жыл бұрын
Thanks Chitrangada!
@mathis-meth42292 жыл бұрын
this guy talks really on point concepts i like your approach. keep up the good work
@IshanKesharwani3 жыл бұрын
I just need a rewatch but I actually understood most of it. Thanks for this.
@MrBeastFan_Gyak2 жыл бұрын
hey, if I already logged in why I need to see unprotected pages , I mean for example I logged in and I do not want to see login page again when I go /login
@hiteshsuthar10973 жыл бұрын
Hope this React playlist would be best series covering from beginner to advanced topics as Akshay Saini's namaste javascript series.
@ShanakaMadhushan-cw8rh Жыл бұрын
Thank you brother ... your explanation is very clear... ❤️🍻
@dilshadahmad8486 Жыл бұрын
great explanation Dipesh bro
@Niamudeen Жыл бұрын
You always kill it bro. 🔥🔥🔥
@yosimaday93022 жыл бұрын
You are amazing. many thanks.🙏
@DipeshMalvia2 жыл бұрын
Welcome!
@kevinrayparas3094 Жыл бұрын
is this still worth to use for routing on react latest version?
@vhsphshbs3 жыл бұрын
Great content. Do make one video daily
@DipeshMalvia3 жыл бұрын
Not really I usually make 2 videos per month
@Serj1c3 жыл бұрын
Thumbs up! keep up with the great job)
@DipeshMalvia3 жыл бұрын
Thank you! Cheers!
@BachelorsEntertainer2 жыл бұрын
You are such a legendary ❤️
@SamruddhaShah3 жыл бұрын
Thanks
@IT_FoodLover3 жыл бұрын
Thanks for making this video 🙏
@DipeshMalvia3 жыл бұрын
My pleasure 😊
@IT_FoodLover3 жыл бұрын
@@DipeshMalvia sir please react redux login register sir
@AvdheshKumar-sm5hl2 жыл бұрын
Very helpful
@thevloglife1053 жыл бұрын
Hi Nice project, But how can hide - components with header and footer in 404 page only? please suggest and help
@mohammadrakib28093 жыл бұрын
Really Helpfull sir, thank you !
@marufkhan235083 жыл бұрын
Simple explanation ✔
@DipeshMalvia3 жыл бұрын
Thanks for liking
@hiteshsuthar10973 жыл бұрын
Thanks again
@DipeshMalvia3 жыл бұрын
Always welcome!
@rahulshetty3849 Жыл бұрын
Thank you❤
@DipeshMalvia Жыл бұрын
Welcome!
@dincer2f3 жыл бұрын
love you man
@prasunalakshmi40353 жыл бұрын
Hi if suppose we have un response website in react how to make it response could please suggest and make vedio
@JaLegendsDance3 жыл бұрын
hey can you make a react js tutorial of an video player that changes the video source of an video. A button activates this function. whitch interchange the video every time I click the button, when i click the button, can the video load at the same time the previous video was playing? There are 2 videos of the same length.
@facemeifucanyt79973 жыл бұрын
Great content bro..please do video on nested routes also... It will be help full when app has more nested routes and facing many problem on persisting active link for nested routes.
@sandipbamaniya85592 жыл бұрын
I'm using react-router-dom 6 switch is not working router.ts:5 Uncaught Error: A is only ever to be used as the child of element, never rendered directly. Please wrap your in a please replay
@thehkmalhotra97142 жыл бұрын
What a tutorial Divesh. Thanks a lot for this❤️ . I am having one issue I think new version React Route doesn’t have Redirect in their modules/package… What to do?
@554-manjushriparkhe42 жыл бұрын
I also have same issue.
@NoumanKhan-ck7vx2 жыл бұрын
anysolution ?
@seethalramakrishnan27782 жыл бұрын
Hi, How can set auth status based on access token from backend?
@S4LTYT3 жыл бұрын
Bro please make videos on REDUX-PERSIST. how to persist redux store. how to setup persist .also make videos on usefull react libraries
@romimaximus3 жыл бұрын
Ok, ate 7:40, im confused about these props " component: component, ... rest ", inside the "ProtectedRoute" component, im trying to understand where are they coming from ? and what they mean ?
@DipeshMalvia3 жыл бұрын
You will pass this when we use the protected component go ahead and you will see when we use this protected component we pass these props..
@romimaximus3 жыл бұрын
@@DipeshMalvia im still trying to understand all thats inside the "ProtectedRoute" component... and trying to understand why you use "Redirect" instead "history.push" ...im still lost..kkkk...i gonna have to watch this a few more 20 times to understand it ..
@mohamedyoussef88352 жыл бұрын
Awesome video Great explanations +++++++++++++++++++++ 😃
@DipeshMalvia2 жыл бұрын
Thanks again!
@adeshgangwar35553 жыл бұрын
Every video is same related to protected route. Bro can you please show us the real time Authentication and how to handle routes with token. It would be very helpful Thanks :)
@DipeshMalvia3 жыл бұрын
Sure. Noted!
@kapilgupta60583 жыл бұрын
Answer me pls Which is used most in industry nowadays between functional components and class components
@DipeshMalvia3 жыл бұрын
Functional components are the modern way of writing React components as you can do almost everything using FC along with React Hooks and in less number of lines.
@coolgirlsharu7 ай бұрын
Hi Dipesh , i have 26 pages / 26 routes , what is the solution how can i protect routes without user authenticate?
@karthikblswami3 жыл бұрын
I am new to react.. How is the job market for react?. Pls explain
@DipeshMalvia3 жыл бұрын
React is hot skill at the moment.
@muniralimuhammad162 жыл бұрын
Can I use this in react router v6?
@DipeshMalvia2 жыл бұрын
Yes, you can use it in React Router DOM v6 but the syntax is bit different - Checkout this video of help - kzbin.info/www/bejne/bJzKmqd7jLmrl8U
@saurabrakshit4052 жыл бұрын
Whenever I'm putting the ProtectedRoute component inside the Routes component I'm getting error i.e "Uncaught Error: [ProtectedRoute] is not a component. All component children of must be a or " how to overcome this I'm using Router Version 6
@DipeshMalvia2 жыл бұрын
You can refer to my video React Firebase authentication I have used protected routes with react router dom version 6. kzbin.info/www/bejne/bJzKmqd7jLmrl8U
@Notyoubiz2 жыл бұрын
Do you have a v6 tutorial as well? Thanks for the video btw.
@DipeshMalvia2 жыл бұрын
Please check this for V6 - kzbin.info/www/bejne/bJzKmqd7jLmrl8U
@Viral_Shorts_v Жыл бұрын
is Switch is still valid in Routes??
@DipeshMalvia Жыл бұрын
No, you can refer to this video with implements the same in Router v6 - kzbin.info/www/bejne/bJzKmqd7jLmrl8U
@abhinavkulkarni34273 жыл бұрын
Sir,if a user is filling form by mistake he has pressed on nav bar or some other area how can we get prompt(prevent navigation) are you sure want to leave the page please make a video on this sir
@DipeshMalvia3 жыл бұрын
You can use the Prompt component like this. `Are you sure you want to go to ${location.pathname}` } /> Check the reference link - reactrouter.com/web/example/preventing-transitions
@alpeshpatel45042 жыл бұрын
Can you make a video login user using axios and procteced route.
@DipeshMalvia2 жыл бұрын
You can check for Firebase authentication video - kzbin.info/www/bejne/bJzKmqd7jLmrl8U
@gnanavelpandian77563 жыл бұрын
Some people use pages as folder name for components and some as components. So, actually what's the difference between pages folder and components folder?
@DipeshMalvia3 жыл бұрын
I usually use pages when I have routing implemented in the project.
@mattari973 жыл бұрын
Pages are the Routes and Components are parts of pages. Its confusing there cause he calls them "HomeComponent" instead of "HomePage"
@rahulnikam12792 жыл бұрын
How to do the same thing in React Router Dom V6 plzz help🙏
@DipeshMalvia2 жыл бұрын
Please check my video for firebase authentication I have used protected routes along with react router dom V6. kzbin.info/www/bejne/bJzKmqd7jLmrl8U
@rahulnikam12792 жыл бұрын
@@DipeshMalvia thanks broo💯💯
@DipeshMalvia2 жыл бұрын
Welcome!
@likhilchopde57453 жыл бұрын
One complete project for resume please
@akhileshmishra55593 жыл бұрын
Sir please make firebase and firestore full tutorial and id could possible nodejs and express js full tutorial in future
@NaveenKumar-yo7yf3 жыл бұрын
Hi , make some videos on jwt token
@AmitRoy4973 жыл бұрын
Hi, Thanks for these amazing videos. I have a request. I don't know it is valid or not. If you have some time, could you please make a video on JWT.
@DipeshMalvia3 жыл бұрын
Sure, I have got couple of request for video on JWT. I will create a video on this topic.
@AmitRoy4973 жыл бұрын
@@DipeshMalvia thanks for the quick reply.
@maxaquilino72642 жыл бұрын
Good tutorial but does not work on React Router v6
@DipeshMalvia2 жыл бұрын
You can check this video - kzbin.info/www/bejne/bJzKmqd7jLmrl8U You will see how to implement protected routes with React Router v6.
@singh.aadarsh2 жыл бұрын
I don't understand props where its comes
@ravishankarpal64992 жыл бұрын
bro make vedio for react router dom v 6 on the same topic
@IT_FoodLover3 жыл бұрын
Sir pls make a video on react redux in login register
@ankitrajbhar158 Жыл бұрын
Sunder Pichai
@amritakhetwani60702 жыл бұрын
Need this in V6, because this technique doesn't work in v6
@DipeshMalvia2 жыл бұрын
Already available in my Firebase Authentication video - kzbin.info/www/bejne/bJzKmqd7jLmrl8U