React Router Complete Guide (Route, Link, NavLink, Redirect, Prompt )

  Рет қаралды 223,892

techsith

techsith

Күн бұрын

Full guild to routing in react js using React-router-dom library. Redirect to different route, Use links to route to specific page and use prompt to stop from exiting a route.
Article and code samples from this tutorial
* github.com/tec...
Please be my patreons on patreaon
* / techsith
Follow me for technology updates
* / techsith
* / techsith1
Help me translate this video.
* www.youtube.com...
Note: use translate.goog... to translate this video to your language. Let me know once you do that so i can give you credit. Thank you in advance.

Пікірлер: 511
@jasper_pa
@jasper_pa 6 жыл бұрын
I bought a React course on Udemy. Im halfway trough this course and have no idea what Im doing. With this Video I learnt much more in much less time about how React works! Thank you!
@Techsithtube
@Techsithtube 6 жыл бұрын
I am glad it helped. Thanks for watching!
@chenwen-hao5023
@chenwen-hao5023 4 жыл бұрын
Is it one of the complete guide courses on Udemy? I am also doing it.
@misbahmushtaq5881
@misbahmushtaq5881 4 жыл бұрын
​@@Techsithtube Hey Sir, can you please mention the extensions you are using within the tool, as it made it much easier to code. I tried React food truck and I am unable to use predefined functions or libraries in my vsCode.
@randomindianfandom1667
@randomindianfandom1667 3 жыл бұрын
@@Techsithtube Same here it was very helpful for covering the topics in detail
@surajbhatt8386
@surajbhatt8386 5 жыл бұрын
I have been learning react for like 2 months down and wasn't able to figure out how to redirect and use prompt. I have checked all the official documentation and finally this video made my day. Thanks man.
@Techsithtube
@Techsithtube 5 жыл бұрын
Suraj, I am glad that you got it. :)
@handsome_man69
@handsome_man69 5 жыл бұрын
you deserve a nobel prize in tutorialism
@MrMrimmer
@MrMrimmer 5 жыл бұрын
Great tutorial! You covered the basics very well! Many thanks!
@MuhammadAbdullahMirza
@MuhammadAbdullahMirza 4 жыл бұрын
Very right
@BharCode09
@BharCode09 4 жыл бұрын
"Tutorialism"? Well you deserve nothing lesser for inventing a word like that :) Good one!
@Podcast_Browntown
@Podcast_Browntown 4 жыл бұрын
I spent 3 days on this one issue. When I route different pages they just all Show up together. Using the “exact” method fixed these problems. Not a single other tutorial expresses this issue. Thank you so much !
@rounakjain5774
@rounakjain5774 5 жыл бұрын
You made a very important point in the beginning. People tend to teach these concepts within a large project which makes it really hard to understand. Thanks for the video.
@hussam68
@hussam68 5 жыл бұрын
Man, I need to thank you for your great explanation of the react-router-dom. I've watched several videos, but yours made me stop half way through to like this video, and leave this comment. Thank you sir. Please keep doing tutorial videos about react, you're very good at that.
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks for a nice comment!
@malvikatiwari3857
@malvikatiwari3857 4 жыл бұрын
You make the learning so simple .....I have seen that video on other sites but it's so confusing. Thanks for doing this
@Techsithtube
@Techsithtube 4 жыл бұрын
Glad you think so! :)
@roshnikutty4252
@roshnikutty4252 6 жыл бұрын
Thank you so much for this tutorial, I was looking forward to this!! Great examples, covering so many scenarios!! I have saved this to my favorite React tutorial list on youtube. I truly appreciate you providing these tutorials
@vimsen2221
@vimsen2221 5 жыл бұрын
I have been following all 11 tutorials so far in this course. They are excellent and extremely well presented. Thanks
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks for watching Vim.
@mikec3412
@mikec3412 6 жыл бұрын
I love your videos man, I'm building fullstack applications now and your tutorials are the best.
@chinnamanigandan3378
@chinnamanigandan3378 5 жыл бұрын
I have used older React router in React 15.3 version couple of years ago in my project. Also I had seen some of the tutorials with react-router-dom but did not understand the core concepts of it. When I gone through this video I could get what you were trying to explain. Techsith, you are doing an awesome job. Especially your ES6 tutors were phenom..Thanks a lot..
@laquocanh
@laquocanh 4 жыл бұрын
this guy's so good, he speaks clear English!
@RonWarnerBubbleKing
@RonWarnerBubbleKing 4 жыл бұрын
Well, not really. He keeps saying stuff like "we going to" instead of "we're going to," "vweedeo" instead of "video" and other things that are grating on the ears of native speakers.
@gordonmceachin2093
@gordonmceachin2093 5 жыл бұрын
Thank you for a clear explanation the react router, I am a student and this will definitely help me incorporate the router into my final class project.
@shawnlee5956
@shawnlee5956 5 жыл бұрын
Simple, clear and direct to the point. I think every video should be like this, less advertise, and more on content. Thanks you for the effort.
@bharathkumarkande5530
@bharathkumarkande5530 5 жыл бұрын
Very good attempt to get users started off with react-router-dom. Personally, it helped me very much for an interview. Thank you.
@Techsithtube
@Techsithtube 5 жыл бұрын
I am glad that helped you. Good luck with the interviews ! :)
@maxiequa567
@maxiequa567 5 жыл бұрын
Thank you so much for doing this as a project focused on the topic in question and not part of a giant project with useless info, great teacher!
@Techsithtube
@Techsithtube 5 жыл бұрын
I am gald that it helped. I struggled when i was learning react routers so I created using my knowledge to so others dont have to struggle.
@haikazahid4665
@haikazahid4665 4 жыл бұрын
Totally appreciate the way you explain each topic with new app Thank you for sharing knowledge in such an amazing way !!
@Techsithtube
@Techsithtube 4 жыл бұрын
Thanks a ton
@olgasinenkova3300
@olgasinenkova3300 4 жыл бұрын
"A lot of people build lrge projects and explain it that way" - 100%, thank you for having your approach, it's the best!
@V36198
@V36198 5 жыл бұрын
While Reading about React in Medium blog was difficult to understand initially.After going through your videos,now I am reading those articles ,every blog about react seems interesting.Thank you.
@simonkalu
@simonkalu 5 жыл бұрын
This is very useful and can be applied to a real world case. Thanks
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks Simon for watching!
@billybobgeo
@billybobgeo 5 жыл бұрын
Hi Techsith -- This is my favorite in the series -- nice blend of your signature instruction and lots of step-by-step code to introduce the facets of React Router: Link, NavLink, Redirect and All.. rock on!
@nguyenhaidung8833
@nguyenhaidung8833 6 жыл бұрын
After a long search about react router, i am so glad that i found you
@Techsithtube
@Techsithtube 6 жыл бұрын
:) THanks for watching!
@anyika1000
@anyika1000 4 жыл бұрын
Pure and Precise. Keep it up sir. Super easy to understand. Been doing react for two days now, this video made me understand routing in react way better than never before
@nageswarkv
@nageswarkv 5 жыл бұрын
I did liked the video. I have paid subscription to Pluralsight but could not understand there and i have to fallback to ur video for understanding router. Great Job
@billwindsor4224
@billwindsor4224 5 жыл бұрын
@techsith - this is an excellent tutorial on React Router, including application code and usage examples for Link, Navlink, Redirect, and Prompt - as you mention. *Thank you!*
@Techsithtube
@Techsithtube 5 жыл бұрын
I am glad that you learnt something for this video. Thanks for watching! :)
@davidtoska7791
@davidtoska7791 6 жыл бұрын
Easy to understand. Straight to the point. Like it!
@mostafashawki
@mostafashawki 5 жыл бұрын
Perfect, the good thing on your series that you build a different project every tutorial.
@AterKenshi
@AterKenshi 6 жыл бұрын
Thanks to you I found my mistake, I've did the router worked when I was starting to learn react but I didn't understand well the routes in the app (Also I have them in another component). After 5 minutes I knew what was wrong. Thank you so much, Now it's clear to me
@Techsithtube
@Techsithtube 6 жыл бұрын
I am glad that it worked out. :)
@rohitkudalkar92
@rohitkudalkar92 5 жыл бұрын
I can find the best solution for javascript from your tutorials. You are the best. thanks and regards.
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks for the comment Rohit. Keep on learning!
@jeromeeusebius
@jeromeeusebius 4 жыл бұрын
Thanks for taking the time to make this tutorial. It was helpful especially, introducing the different ideas and concepts sequentially and also explaining why you are introducing them.
@Techsithtube
@Techsithtube 4 жыл бұрын
Thanks for watching!
@ai-bruise
@ai-bruise 4 жыл бұрын
If you want some more advanced examples with react-router just see README github.com/Sin9k/react-router-dom-tricks
@TechRedux
@TechRedux 5 жыл бұрын
Sir You Are Amazing..I Was Trying To Find A Solution Related To Conditional Routing For 3 Hours And You Solved My Problem
@Techsithtube
@Techsithtube 5 жыл бұрын
I am glad that you were able to solve this. Thanks for watching.
@prabhukadode723
@prabhukadode723 5 жыл бұрын
Thank you for this beautiful tutorial. All doubts i have about routing in reactjs have been cleared .. Thanks again sir.
@Techsithtube
@Techsithtube 5 жыл бұрын
Glad you got it prabhu. Keep on learning
@itrauco
@itrauco 5 жыл бұрын
This was great, thank you for leaving all of the typical project/app “fluff” out and getting straight to the point!
@ramyfarid2296
@ramyfarid2296 5 жыл бұрын
Please don't stop tutoring! you are great
@SauravR402
@SauravR402 5 жыл бұрын
Simple and straight presentation of ideas. Really liked. Thanks.
@subhanvempalli6088
@subhanvempalli6088 4 жыл бұрын
Thanks for this tutorial, very easy to understand for beginners
@Techsithtube
@Techsithtube 4 жыл бұрын
Thanks for watching!
@priyamit_singh
@priyamit_singh 3 жыл бұрын
best tutorial i found on KZbin for this topic great work thank you so much
@Techsithtube
@Techsithtube 3 жыл бұрын
Glad it was helpful!
@brilliantphal6646
@brilliantphal6646 6 жыл бұрын
I have been looking for tutorials like yours for a long time. I can say you are very straight to the point. :) I really appreciate this.
@gabrielfono844
@gabrielfono844 4 жыл бұрын
sir you are such an amazing teacher and I really like the way that you explain concept. even by seeing the way that you explain concept, I guess you are a disciplined and honest person thanks so much
@riddhin5189
@riddhin5189 6 жыл бұрын
nice explanation, step by step guide..simple and classy !! helpful ! Thank you
@tommyleong8328
@tommyleong8328 4 жыл бұрын
Once again great content, helping me to understand how react-router works. Though am I puzzled with all the functionalities I could use (match, location, history, etc..) but I get the basic idea on the navigation and param passing! Thanks man!
@wizardreza
@wizardreza 4 жыл бұрын
thank you, i think this is very simple explaination, honestly, i m very dificult to understand how JS routing page, because im from PHP programmer, but now, i know how it work, thank you very much
@lokeshkatikireddi1924
@lokeshkatikireddi1924 4 жыл бұрын
Very Impressive. Hats off. Best way of teaching things.
@mhmdnayef710
@mhmdnayef710 6 жыл бұрын
You are the only one , who did this topic , in this awesome explanation on youtube........you are awesome
@vickyvirat5166
@vickyvirat5166 5 жыл бұрын
you explained it pretty well and very easy to understandable manner
@arpithap7900
@arpithap7900 3 жыл бұрын
Explanation and examples are very clear to understand, Thanks
@harveyboity4146
@harveyboity4146 5 жыл бұрын
Nice video. Router concept explanation is damn good. Thanks a lot!
@Deepakpundir-spark
@Deepakpundir-spark 4 жыл бұрын
I wish I could pay you but I'm broke and trying to find a job. Really thank you brother.
@ramsreddy9563
@ramsreddy9563 4 жыл бұрын
Single word just awesome explanation
@rajaramsavant4384
@rajaramsavant4384 5 жыл бұрын
Really helpful, major parts of the react are explained in a proper way so that it can be understood easily 👌👌
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks for watching Raju.
@generalzeedot
@generalzeedot 3 жыл бұрын
phenomenal teacher! Keep up the good work Sith
@deveshkachhaway5715
@deveshkachhaway5715 4 жыл бұрын
Very good details on Router. Thanks🙂
@raekwonthachef
@raekwonthachef 4 жыл бұрын
I'm brand new to routing, thanks for the great video!
@TanujPanchal16
@TanujPanchal16 6 жыл бұрын
Very simple and helpful tutorial. You have explained everything so easily. Looking forward for more interesting tutorials. Keep it up.
@btr333
@btr333 5 жыл бұрын
Very good. Simple and intuitive.
@vikaschouhan8372
@vikaschouhan8372 5 жыл бұрын
Simple and fast way to learn and understand React routing
@dp7939
@dp7939 5 жыл бұрын
You can select word and hit ctrl + D, that will select all other possible word match and can change in one go and then hit esc to release multiple selection.
@TheAditya64
@TheAditya64 5 жыл бұрын
While teaching, Please go slow as we miss out things. And please don't zoom into it. But your tutorials are great, learnt a lot. Thanks!
@markchristopherdauz7750
@markchristopherdauz7750 6 жыл бұрын
Thank you so much!, simple explanation but straight to the point!, ☺
@pooranik5342
@pooranik5342 4 жыл бұрын
it was an awesome and clear explanation..kindly do more react with spring boot videos
@dinseid202
@dinseid202 3 жыл бұрын
This is really amazing. Thank you for your nice explanation!!
@MuhammadAbdullahMirza
@MuhammadAbdullahMirza 4 жыл бұрын
I loved your video its very simple,easy to understand for beginners & it helped me a lot.
@kps2642
@kps2642 6 жыл бұрын
been a fan of you since I first saw your video on prototypes a month back, I love react and react -native , thank you for this awesome video sir, however may I suggest you a video ? I would like to see react native navigation covered by you , it's kinda tricky, thanks again sir :)
@Techsithtube
@Techsithtube 6 жыл бұрын
Sure, I am planning a React Native Series so I will be able to do it soon.
@autumnleaves9917
@autumnleaves9917 6 жыл бұрын
Thank you sooo much! This is the best I've found!
@nipambarman9785
@nipambarman9785 5 жыл бұрын
NICE!! Very much helpful..short n to the point video...please make this kinda videos...Will go through your all React videos....Thank you so much
@naeemjamali1475
@naeemjamali1475 6 жыл бұрын
Awesome tutorial and to point things. A big Thankx for that, I appreciate your teaching skills and honesty of telling about everything deeply. Thank you.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thank you for watching! :)
@er16deepak
@er16deepak 6 жыл бұрын
Thank you for such a wonderful video...You made React router very easy to understand.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for watching Deepak!
@prabu106
@prabu106 5 жыл бұрын
Great.. It is very useful to learn react router concepts. ThankYou.
@Techsithtube
@Techsithtube 5 жыл бұрын
Thank for watching Prabhu !
@Geek-jx3gw
@Geek-jx3gw 3 жыл бұрын
MAAAAAAAAAAAAAAAAN I LOVE YOUU!!!!!!!!!!!!!!!!!!!!!!! YOU SAVED MEEEEE I HAVE A PROJECT AND I DO NOT KNOW 1% IN REACT YOU MADE IT EASYYYYY NOOOOW THANKS A LOOOOOOOOOOOOOTTTTTTTTTTTTTTTTTTTTTT
@Techsithtube
@Techsithtube 3 жыл бұрын
I am glad that it helped. Keep on learning! Thanks for watching!
@jeffersonbiongcog1648
@jeffersonbiongcog1648 2 жыл бұрын
nice comment! (kidding) very informative. did a good job on the delivery. Im new in react-router and i like the contents on this video.
@olegfrolovdesign
@olegfrolovdesign 5 жыл бұрын
Thanks a lot for this tutorial! Well explained. Easy to understand.
@charles87b
@charles87b 6 жыл бұрын
This is the video that I’ve been looking for... thank you!
@naveenkumar-vb8tp
@naveenkumar-vb8tp 6 жыл бұрын
your tutorials are always awesome. great tutorial on react router
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for watching Naveen!
@shawnmurray2235
@shawnmurray2235 6 жыл бұрын
Thanks for the video! The Link part has confused me for weeks.
@BigMoneySniper
@BigMoneySniper 6 жыл бұрын
Bro remember me with the awesome comment 7 months ago. Here I am always watching your videos man. Your so damn amusing g. Keep them nice and slim all day. Good GREAT Stuff man. Great stuff.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for watching Seena, I see you have been learning for past 7 months. Keep learning!
@Fcmam5
@Fcmam5 6 жыл бұрын
Thank you very much sir for this "react-router for humans" video. Straight to the point !
@leokileo
@leokileo 4 жыл бұрын
i have been loking somthig like Redirect fuctions thanks
@Techsithtube
@Techsithtube 4 жыл бұрын
I am glad it worked for you.
@ManishSingh-lk4qs
@ManishSingh-lk4qs 5 жыл бұрын
Amazing explanation. Thanks a lot Sir.
@varunsharma5045
@varunsharma5045 6 жыл бұрын
Another superb video...nicely explained...
@artem.matseruk
@artem.matseruk 5 жыл бұрын
Thanks for tutorial. It was useful for me :)
@badytouray294
@badytouray294 3 жыл бұрын
Really enjoyed watching this tutorial, I have subscribed and hit the notification bell :-) Looking forward to seeing more videos.
@Techsithtube
@Techsithtube 3 жыл бұрын
Thanks for subbing! Keep on learning!
@Jessica-wo3lr
@Jessica-wo3lr 6 жыл бұрын
All of your videos are life savers!! Thanks! :)
@Techsithtube
@Techsithtube 6 жыл бұрын
I am glad the videos are helping you ! Thanks for watching Jessica! :)
@michaeleidland9961
@michaeleidland9961 4 жыл бұрын
For me "import { Route } from 'react-router-dom/Route'" did not work. Got error. But "import { Route } from 'react-router-dom'" worked fine! Anyway, thanks for AWESOME tutorials!
@poladalqayev631
@poladalqayev631 5 жыл бұрын
Thank u for great explaining !
@jasonhoffman4990
@jasonhoffman4990 5 жыл бұрын
Thank you for a great and comprehensive video!
@sivamurugans3228
@sivamurugans3228 3 жыл бұрын
It's very clear to understanding and helpful..!!
@Techsithtube
@Techsithtube 3 жыл бұрын
Glad you think so!
@RockstahRolln
@RockstahRolln 4 жыл бұрын
Such a Brliiant video on Routing, you made is extremely easy to understand! Thank You!!
@ai-bruise
@ai-bruise 4 жыл бұрын
if you want some advanced examples just see README: github.com/Sin9k/react-router-dom-tricks
@rohanshastri944
@rohanshastri944 4 жыл бұрын
Explained the basics very wel. Also if you could do a tutorial on creating simple form with React will be helpful.
@hargunsingh1893
@hargunsingh1893 4 жыл бұрын
you really taught in a simple way
@jeyaletchmiarumugam2918
@jeyaletchmiarumugam2918 4 жыл бұрын
very simple and easy to understand
@ApodyktycznyCzlek
@ApodyktycznyCzlek 4 жыл бұрын
I'm not sure if you have to bind context of this in 17:27, you're using arrow function, which inherits the context of the place it has been invoked. Nevertheless, your tuts are great and valuable and I really appreciate your approach!
@satejall
@satejall 5 жыл бұрын
simple understating of react router very helpful for all
@rakeshmanathana
@rakeshmanathana 4 жыл бұрын
Helpful. Thanks!
@olorinorphique
@olorinorphique 6 жыл бұрын
Loving React more and more.
@Techsithtube
@Techsithtube 6 жыл бұрын
React is a fun framework. :)
@Miggleness
@Miggleness 5 жыл бұрын
Good coverage for the time allotted
@themynamesb
@themynamesb 4 жыл бұрын
Great work !! Very nicely explained !!
@algomonster5897
@algomonster5897 5 жыл бұрын
Thank you So much for this video. It is in depth and very good explanation. Thanks again.
@garrettbaker2320
@garrettbaker2320 6 жыл бұрын
Great stuff!
@Ones_Complement
@Ones_Complement 6 жыл бұрын
14:53 Really flubbed the explanation here. 17:31 Bind unnecessary as your loginHandle was defined as an arrow function (lexical this). Overall though, pretty informative and easy to follow tutorial. A thumbs up from me.
@madeupstory
@madeupstory 5 жыл бұрын
yeah bind was unnecessary
@tenet-rotas
@tenet-rotas 6 жыл бұрын
This is an excellent video! Thanks for explaining this.
React Refs and DOM
21:43
techsith
Рет қаралды 72 М.
React router with hooks ( useHistory useParam  useLocation )
15:56
WORLD BEST MAGIC SECRETS
00:50
MasomkaMagic
Рет қаралды 47 МЛН
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 8 МЛН
МАИНКРАФТ В РЕАЛЬНОЙ ЖИЗНИ!🌍 @Mikecrab
00:31
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 40 МЛН
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 1,7 МЛН
React Router v6 in depth guide
57:57
Hitesh Choudhary
Рет қаралды 105 М.
All 17 React Best Practices (IMPORTANT!)
1:46:11
ByteGrad
Рет қаралды 140 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 895 М.
Simple Code, High Performance
2:50:14
Molly Rocket
Рет қаралды 250 М.
Build a Website with React, React-Bootstrap and React-Router
40:04
Brice Ayres
Рет қаралды 145 М.
Redux For Beginners | React Redux Tutorial
39:43
developedbyed
Рет қаралды 1,2 МЛН
React Component Lifecycle Hooks / Methods
22:02
techsith
Рет қаралды 113 М.
React Router 6.4 - Getting Started
44:31
Academind
Рет қаралды 86 М.
WORLD BEST MAGIC SECRETS
00:50
MasomkaMagic
Рет қаралды 47 МЛН