No video

React Router V6 Tutorial - Routes, Redirecting, UseNavigate, UseParams...

  Рет қаралды 277,938

PedroTech

PedroTech

Күн бұрын

Hey everyone, in this video I teach you all the new version of React Router Dom. I have an old video teaching this topic, but with the update a lot has changed.
🌟 Get 20% Off Brilliant: brilliant.sjv....
Code: github.com/mac...
🚀 Learn ReactJS By Building 6 Projects: codedamn.com/l...
► Buy Crypto on Coinbase: coinbase-consumer.sjv.io/PedroTech
💻 Join our Discord: / discord
Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Website: machadopedro.com
Linkedin: / machadop1407
Instagram: / _pedro.machado_
Github: github.com/mac...
Email: machadop1407@gmail.com
Tags:
- ReactJS Tutorial
- ReactJS and MySQL
- NodeJS Tutorial
- API Tutorial
#reactjs #reactrouter

Пікірлер: 537
@realdoomerhours
@realdoomerhours 2 жыл бұрын
This is a way better tutorial than the actual React documentation, great job.
@ultimatesheep
@ultimatesheep 2 жыл бұрын
documentation is just like manual Nobody reads it
@caracalmanhique9260
@caracalmanhique9260 2 жыл бұрын
@@ultimatesheep kkkk
@wyvrendragon4175
@wyvrendragon4175 Жыл бұрын
Aggree😂
@Joao-oo8yj
@Joao-oo8yj Жыл бұрын
@@caracalmanhique9260 br?
@alowe5013
@alowe5013 2 жыл бұрын
You have no idea how much of a difference this video made to my life today. Thank you so much - such a clear, easy to follow video. So grateful!
@brilliantatosam
@brilliantatosam 2 жыл бұрын
This is a timely intervention. God bless you, Pedro!
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Hahaha i was waiting for so long for the React Router update to make this video
@raphaeljaggerd3585
@raphaeljaggerd3585 2 жыл бұрын
Thanks bruv it took me forever to realise my errors were caused by v6
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Hahaha im glad I helped!
@petritmekuli
@petritmekuli 2 жыл бұрын
Short and really helpful. Anyway when you said you can use any of and that's true, but I think it's important to mention that and are different. Because the component makes possible SPA(single page application) and is the old way of doing request. And that's kinda big deal.
@izatydita
@izatydita 2 жыл бұрын
This tutorial is exactly what I'm looking for. And your explanation is very clear. It's a helpful tutorial. Thanks, Pedro!
@jvandco30
@jvandco30 2 жыл бұрын
Very very thank you brother. I spent 4 hours for routing using switch and later I came to know that switch does not work in higher versions. Your video is very very useful. Please continue your contribution to the world in a positive way.
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad it helped
@benihahitti3513
@benihahitti3513 2 жыл бұрын
Great Job, extremely clear and concise. It's always good to stay on top of the latest updates and changes.
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad it was helpful!
@ManpahulSingh
@ManpahulSingh 2 жыл бұрын
I was following a react tutorial series where the instructor used router v4, and I installed router v6 thinking it should be better and since the history, location and match props do not exist on router v6, I spent hours figuring out why I don't have these props anymore and why is my console all red. Finally I landed to this video. Thanks a lot man, you earned a sub :)
@realdoomerhours
@realdoomerhours 2 жыл бұрын
I'm currently going through the exact same thing. Glad I found this video because I was about ready to throw my laptop out the window.
@artemmarketer5745
@artemmarketer5745 2 жыл бұрын
@@realdoomerhours Nice for you cuz I'm already using a new laptop for the same reason.
@realdoomerhours
@realdoomerhours 2 жыл бұрын
@@artemmarketer5745 You have my sympathies.
@cristinalopez8667
@cristinalopez8667 2 жыл бұрын
Thank God I found your video. I'm a recent bootcamp graduate and was going nuts trying to figure out why my React apps had had stopped working!
@asfnobambu
@asfnobambu 2 жыл бұрын
My son is also Pedro. I just started to learn React. Thank you !!
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
That's awesome! Are you brazilian?
@asfnobambu
@asfnobambu 2 жыл бұрын
@@PedroTechnologies Yep.
@Tux256ND
@Tux256ND 2 жыл бұрын
Dude! This is just the explanation I needed. Most videos we see are for people coming from v5 to v6, but you got me covered, even me not knowing much, even from v5! Thanks a lot, mano!
@AlvinSohebBaig
@AlvinSohebBaig 2 жыл бұрын
Thanks buddy , I was stuck at some point and needed just one sentence which you narrated in this video : 👏👏
@seagypsy2591
@seagypsy2591 2 жыл бұрын
Thank you!! I had been searching for days on how to use the useNavigate bit. I am new to react and most other tutorials just rush through telling you what to type but don't explain why you type it. I learned more from the first half of your tutorial than i have from all other tutorials combined.
@SkyrimBeast
@SkyrimBeast 2 жыл бұрын
Like this video? No. LOVE this video? YES!! Many thanks Pedro 🙂
@joydeepr007
@joydeepr007 2 жыл бұрын
I just saw this video in 2x speed and still understood everything. You're awesome 🎉
@RV-kl2wl
@RV-kl2wl 2 жыл бұрын
Perdro I cannot thank you enough. Whatever I need, i find on your channel in a very concise and easy to understand video. Keep up the good work. 100k soon 🙏
@anuragkasudhan3734
@anuragkasudhan3734 Жыл бұрын
te way you explain things, it is so simple and yet so effective. IT IS INDEED ONE OF THE BEST REACTJS TUTORIALS ON KZbin. Kudos and more power to you. may god bless you. thanks, love from India.
@PedroTechnologies
@PedroTechnologies Жыл бұрын
Appreciate that!!
@farihanashih2131
@farihanashih2131 2 жыл бұрын
Thank you very much sir. I am a beginner in React and very confuse when i learn the old method. i don't know there is change on react-router-dom syntax in v6. GREAT EXPLANATION
@sslab33
@sslab33 2 жыл бұрын
By far the best tutorial for react router v6 Every thing needed to start react router in just 20min
@hirealgore
@hirealgore Жыл бұрын
AMEN! Spent all day on this because I was working with DOM5 commands. THAKN YOU !
@gonzalooviedo5435
@gonzalooviedo5435 Жыл бұрын
Very clear explanations, thank you, Ive already seen 2 complete videos from you, this one and the another one explained react hooks!. Thanks from Chile!!!
@erhanaslan3572
@erhanaslan3572 2 жыл бұрын
your youtube channel teaches more than any university or any course
@micahwendorf8808
@micahwendorf8808 2 жыл бұрын
You make it so easy to follow along and grasp the concepts. Thanks so much for taking the time to do this!
@huskypsycho7833
@huskypsycho7833 2 жыл бұрын
AMAZING video dude... ive seen some of your past ones and they were really helpful but i still had so many issues and i had to find replacement methods to do all the things you said in @6.. this video was straight to the point, great explanation. Thanks again and JUST when i needed it too....
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Hahaha thank you! Glad you liked it!
@thatonichan
@thatonichan Жыл бұрын
bro you're a lifesaver fr fr
@SUPREM00
@SUPREM00 Жыл бұрын
Finally someone who knows how to teach
@user-wl1jp1wd2p
@user-wl1jp1wd2p Жыл бұрын
Thank you so much... This is the simplest explanation i have seen for react router dom
@AlexisScuderi
@AlexisScuderi Жыл бұрын
Thanks bro, useParam will be very usefull in my actual project. I started watching this video just to see if i learn something new about react route because im very new at it, and i did
@VskiDevs
@VskiDevs 2 жыл бұрын
@PedroTech you just asked the very question that made me come to this video at 18:45 and answered it. thanks man. big help, you got no idea🔥💯
@asyourlipslounge
@asyourlipslounge 2 жыл бұрын
Running through a MERN.tutorial that was a few years old. Thanks for running through the syntax update for React.js^6
@sunbrogilgamesh
@sunbrogilgamesh 2 жыл бұрын
saved my head from going mad, dude! many thanks to you, i just couldn't figure out how to use routes with my component, finally it works!
@angelzacarias8886
@angelzacarias8886 2 жыл бұрын
I'd like to believe you're from LATAM as your name is Pedro... It kind makes me feel proud of how good videos you have, recently I found your channel and you have a permanent subscriber 👍 great job!
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Hahaha I am from Brazil :) Happy to hear you like the videos!
@westernpigeon
@westernpigeon 2 жыл бұрын
thank you so much for this video dude, i tried looking for videos explaining this and every video is so outdated and yours is great AND up to date! lifesaver!
@zenova9926
@zenova9926 Жыл бұрын
i'm crying just because how well is your explanation, earned a sub!!! ✨
@nickurchin9579
@nickurchin9579 2 жыл бұрын
Appreciate this very much; it was precisely what I was looking for. I initially watched Web Dev Simplified's 46 minute video on React Router and ended up feeling slightly overwhelmed as all I wanted to know is how to load a new page >.< lol. This video was a relief and helped narrow the scope a bit, so my feeble mind could better absorb the info. For the record I'm not knocking Web Dev Simplified's video at all; it's superb and covers considerably more than what we learn here, but was more than I was looking to chew on at the moment. This is a great intro/beginner friendly video and then for anyone looking to go a little more in-depth/intermediate, go check out Web Dev Simplified's video. I've really enjoyed the few videos of yours I've watched so far, so consider me subscribed. Keep up the great work, man.
@amirmahdimohamadian6732
@amirmahdimohamadian6732 2 жыл бұрын
I never comment on videos, but DUDE... you are a life saver! Thanks for everything!
@caffeinated-pixels
@caffeinated-pixels 2 жыл бұрын
Cool, this helped me migrate an app from v5 to v6. Thanks!
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad it helped!
@alawy5551
@alawy5551 2 жыл бұрын
8:40 Yesss thanks!! I watch tutorial about building React website and I struggle with this step he used this : path='/' exact component={Home} Technology changes fast :)
Жыл бұрын
This is absolutely gold my friend. Keep going like this. I love you.
@parvatprajapati8932
@parvatprajapati8932 2 жыл бұрын
You just showed every important topic related to react-router-dom very well. with changes of older and newer version. Thanks
@faisalazhar9622
@faisalazhar9622 2 жыл бұрын
I was facing problem on useParams. Problem solved thanks to you.
@juanchibrossa8569
@juanchibrossa8569 2 жыл бұрын
Thank you so much, Pedro! Cheers from Argentina 🇦🇷
@viallymboma9874
@viallymboma9874 2 жыл бұрын
Thank you very much. been struggling since afternoon on a specific aspect and from 13:25 to 13:30 demystified my confusion and i was able to solve my error...
@LazAustin
@LazAustin 2 жыл бұрын
You are awesome man. I'm learning React as we speak and the tutorials I was using were basically obsolete and you bridged the gap.
@kajolghoshkkg5512
@kajolghoshkkg5512 2 жыл бұрын
please make a tutorial on nested routing with react-router-dom@6 which will be very helpful as always
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Yes! I will make a video about it soon!
@codexjay674
@codexjay674 2 жыл бұрын
Exactly what I'm looking for. Thank you Pedro
@FliSh123
@FliSh123 7 ай бұрын
You can also wrap the button in a link tag and navigate using that too!
@user-lm9ve2js2t
@user-lm9ve2js2t 2 жыл бұрын
Thanks a lot for your videos ~ I'm still learning web developing, and found your videos so helpful !
@KingBurger52
@KingBurger52 2 жыл бұрын
You made this very easy to understand! You have no idea how helpful this is!
@razor0wn3d
@razor0wn3d 2 жыл бұрын
Very good bro. Thanks a lot! I'm from Brazil. I was searching on youtube a tutorial about routes on ReactJS and i see this amazing video.
@LIMLIMLIM111
@LIMLIMLIM111 2 жыл бұрын
You saved me so much time learning router! Thank you so much :))
@plaguegames3556
@plaguegames3556 Жыл бұрын
Plain and simple, thank you mate
@zaidaljamaly3905
@zaidaljamaly3905 2 жыл бұрын
You are the best youtuber that teach react thank you for your amazing videos 🌹
@samnayakawadi
@samnayakawadi 2 жыл бұрын
You did the right move. Seriously there are very less videos on v6. Thanks. Already Subscribed.
@abhinavagarwal7373
@abhinavagarwal7373 2 жыл бұрын
Best video on the internet on this topic
@mohammedfareedh
@mohammedfareedh 2 жыл бұрын
You are the best Instructor Bro.... Keep Rocking
@mkwaliyo
@mkwaliyo 2 жыл бұрын
All I can say is thanks man. Really appreciate
@TheRealAfroRick
@TheRealAfroRick 2 жыл бұрын
Very clear, but you should also consider that someone may be coming to this content who has never see react-router-dom - EVER. I've been using react long enough to follow what you're doing, but as opposed to covering the changes, if you're doing a tutorial you have to cover it from the noob perspective.
@Nikoulkina
@Nikoulkina 10 ай бұрын
Thank you for this concise and extremely useful video!
@divyanshsao3846
@divyanshsao3846 2 жыл бұрын
Man You are a life saver. This video was so full of information Thankyou so Much for this
@captainbeardedman7645
@captainbeardedman7645 2 жыл бұрын
Very useful tutorial. Google was of no help for me 2022. But this video just made sense.
@derickasane8499
@derickasane8499 2 жыл бұрын
very clear and intuitive. thanks pedro
@Mark-nm9sm
@Mark-nm9sm 2 жыл бұрын
Really good video , explained it easily and most other yt videos about this are outdated so good job
@mustafatechsolutions
@mustafatechsolutions 2 жыл бұрын
I love you my guy you helped in fixing my issues, you get a subscriber!
@changgiljeong9820
@changgiljeong9820 2 жыл бұрын
Thank you so much Pedro, Your videos are always amazing!
@faris.abuali
@faris.abuali 2 жыл бұрын
Thanks Pedro! 🧡
@mselbekk
@mselbekk 2 жыл бұрын
This was great! Watched about 6 other videos which didn't work. Thanks a lot!
@millsbelamideb.4293
@millsbelamideb.4293 9 ай бұрын
best 20mins of my life
@brayandelgado2458
@brayandelgado2458 2 жыл бұрын
Thank you brother, i was searching a tutorial like this long time ago and today i got find it... a million of points for you!
@olenayevtushok2014
@olenayevtushok2014 Жыл бұрын
Thank you, Pedro! It's a great explanation!
@jaylee5252
@jaylee5252 Жыл бұрын
This was really helpful and simple to understand. Thank you.
@mayuribharadva7554
@mayuribharadva7554 2 жыл бұрын
Thanks a lot for the explanation of new updated concept of Route dom .. It solved my problem.
@shawnlee5956
@shawnlee5956 2 жыл бұрын
nice video ~ how to router dom work wih 'protected route'? or other words how to block unsigned in user to access the route?
@002ashishkumar5
@002ashishkumar5 2 жыл бұрын
Omg!! greatest explanation ever, cleareed all my doubts , thnx i always watch ur videos cuz its a lot clear and to the point
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Thank you!
@flowerofash4439
@flowerofash4439 2 жыл бұрын
very clear explanation, easy to understand and good articulation with great teaching pace. you deserve more subs
@tcleedev
@tcleedev Жыл бұрын
Now whenever I want to figuer out something, I check if Pedro made a video or not first lol
@gouravchouhan1790
@gouravchouhan1790 2 жыл бұрын
Your channel === GEM💎
@oneinchmoon
@oneinchmoon 2 жыл бұрын
Thank you Mr. Pedro nice mechanical keyboard btw
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad it helped! I am actually going to replace it with a muted keyboard for videos cause I don't want the sound appearing in the video hahaha
@SquareRoot_
@SquareRoot_ 2 жыл бұрын
Thank you for the quick refresher.
@aniketkarode5527
@aniketkarode5527 2 жыл бұрын
Thanks for the amzing video it clear all my doubts in React Router Dom v6
@thydevdom
@thydevdom Жыл бұрын
Coffee on me. Your videos are always great!
@PedroTechnologies
@PedroTechnologies Жыл бұрын
I appreciate that! Thank you!!
@arsnakehert
@arsnakehert 2 жыл бұрын
Thank you for this A short, to the point, up-to-date video; I haven't watched much of your channel, but if the rest of it is like this, I may just have found a treasure trove of learning resources! Again, thank you, parceiro :D
@MBkingsoft
@MBkingsoft 2 жыл бұрын
First time watching your videos and I'm sooooo impressed sir. You just got one more subscriber! Well done.
@jaisharma8056
@jaisharma8056 Жыл бұрын
thank you soo much brother !! this is the best video on all youtube.
@ibnuhafizh5656
@ibnuhafizh5656 2 жыл бұрын
Thankyou so much, i've deadline tomorrow and i saw this video!
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Awesome!
@sebastianonofrei8180
@sebastianonofrei8180 2 жыл бұрын
Thank you very much Pedro ! This helped me a lot .
@mohammedalabdulhamid5289
@mohammedalabdulhamid5289 2 жыл бұрын
thank you, simple but very valuable explanations
@colab_ora
@colab_ora Жыл бұрын
thanks very good and easy way to explain, useful a lot for me, am learning React rigth now, thanks dude, regards from Chile
@lakki756
@lakki756 2 жыл бұрын
Thanks Pedro your vedio are help full for using react-router-dom components of v6
@jennywilliams8063
@jennywilliams8063 2 жыл бұрын
Fantastic tutorial! Two questions: 1. What's the VSCode command for getting rid of the parens () in Profile.js at 7:45? 2. In App.js, how does the import for each page automatically get added after you insert each Route path? For example, line 3 gets added at 8:25 for the Home path.Is it an extension?
@eneadriancatalin
@eneadriancatalin Жыл бұрын
1. ES7+ React/Redux/React-Native snippets 2. it's an extension called auto import with over 2M installations
@saranghae3720
@saranghae3720 2 жыл бұрын
Thanks a lot bro... for this tutorial.. i was struggling with old udemy course in which router v4 was used......
@jonathabot
@jonathabot 2 жыл бұрын
Thank you. You literally saved my live.
@wisdom6739
@wisdom6739 Жыл бұрын
Hello PedroooooO very good work ! You have all my respect, your tutorial is a real tutorial, so I subscribe right away !
@noelpadavan5674
@noelpadavan5674 2 жыл бұрын
This man stays reading my mind, just when I need this. Thank you!
@josuegarcia4280
@josuegarcia4280 2 жыл бұрын
very useful information the only thing I would change is to implement to render a nav component instead of the code, the way its implemented works just fine but will grow if you need to add more code to the nav and it wont look good or feel good for best practices, other than that, perfect Job Pedro!!!!!
@davidelbaz9188
@davidelbaz9188 Жыл бұрын
You explain extremely good !
@farhadfallahi8200
@farhadfallahi8200 2 жыл бұрын
This video helped me! Thanks, Pedro Tech ❤
@mmd1dev
@mmd1dev 2 жыл бұрын
You are the best Pedro thanks for every tutorial u made❤💥
@akashgillella
@akashgillella 2 жыл бұрын
Thanks a lot! I am new to react, and all the tutorials use switch and whatnot! I got so mad that my code wasn't working...
Learn React Router v6 In 45 Minutes
46:20
Web Dev Simplified
Рет қаралды 551 М.
React Redux Tutorial For Beginners | Redux Toolkit Tutorial 2021
53:26
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 16 МЛН
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 40 МЛН
All The JavaScript You Need To Know For React
28:00
PedroTech
Рет қаралды 602 М.
Learn React Router v6 - Full Course
1:43:23
freeCodeCamp.org
Рет қаралды 52 М.
React Hooks Course - All React Hooks Explained
1:26:21
PedroTech
Рет қаралды 1 МЛН
React router crash course
55:54
Hitesh Choudhary
Рет қаралды 36 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 567 М.
React Router v6 in depth guide
57:57
Hitesh Choudhary
Рет қаралды 105 М.
All useEffect Mistakes Every Junior React Developer Makes
22:23
Axios Crash Course | HTTP Library
42:20
Traversy Media
Рет қаралды 367 М.
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 16 МЛН