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

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ย. 2021
  • 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.io/PedroTech
    Code: github.com/machadop1407/react...
    🚀 Learn ReactJS By Building 6 Projects: codedamn.com/learn/reactjs-pr...
    ► 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/machadop1407
    Email: machadop1407@gmail.com
    Tags:
    - ReactJS Tutorial
    - ReactJS and MySQL
    - NodeJS Tutorial
    - API Tutorial
    #reactjs #reactrouter
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 537

  • @alowe5013
    @alowe5013 2 ปีที่แล้ว +17

    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!

  • @realdoomerhours
    @realdoomerhours 2 ปีที่แล้ว +79

    This is a way better tutorial than the actual React documentation, great job.

  • @izatydita
    @izatydita 2 ปีที่แล้ว +26

    This tutorial is exactly what I'm looking for. And your explanation is very clear. It's a helpful tutorial. Thanks, Pedro!

  • @brilliantatosam6882
    @brilliantatosam6882 2 ปีที่แล้ว +38

    This is a timely intervention. God bless you, Pedro!

    • @PedroTechnologies
      @PedroTechnologies  2 ปีที่แล้ว +4

      Hahaha i was waiting for so long for the React Router update to make 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.

  • @Tux256ND
    @Tux256ND 2 ปีที่แล้ว +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!

  • @micahwendorf8808
    @micahwendorf8808 2 ปีที่แล้ว +3

    You make it so easy to follow along and grasp the concepts. Thanks so much for taking the time to do this!

  • @petritmekuli
    @petritmekuli 2 ปีที่แล้ว +3

    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.

  • @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!

  • @LazAustin
    @LazAustin 2 ปีที่แล้ว +1

    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.

  • @benihahitti3513
    @benihahitti3513 2 ปีที่แล้ว +50

    Great Job, extremely clear and concise. It's always good to stay on top of the latest updates and changes.

  • @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!

  • @RV-kl2wl
    @RV-kl2wl 2 ปีที่แล้ว +1

    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 🙏

  • @sslab33
    @sslab33 2 ปีที่แล้ว

    By far the best tutorial for react router v6
    Every thing needed to start react router in just 20min

  • @AG-kg9iu
    @AG-kg9iu ปีที่แล้ว

    AMEN! Spent all day on this because I was working with DOM5 commands. THAKN YOU !

  • @raphaeljaggerd3585
    @raphaeljaggerd3585 2 ปีที่แล้ว +11

    Thanks bruv it took me forever to realise my errors were caused by v6

  • @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!

  • @parvatprajapati8932
    @parvatprajapati8932 2 ปีที่แล้ว

    You just showed every important topic related to react-router-dom very well. with changes of older and newer version. Thanks

  • @huskypsycho7833
    @huskypsycho7833 2 ปีที่แล้ว +5

    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....

  • @fhkodama
    @fhkodama 2 ปีที่แล้ว +1

    Perfect explanation! Straight forward, but complete! Thanks, man!

  • @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

  • @AlvinSohebBaig
    @AlvinSohebBaig ปีที่แล้ว

    Thanks buddy , I was stuck at some point and needed just one sentence which you narrated in this video : 👏👏

  • @zenova9926
    @zenova9926 ปีที่แล้ว

    i'm crying just because how well is your explanation, earned a sub!!! ✨

  • @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...

  • @KingBurger52
    @KingBurger52 ปีที่แล้ว

    You made this very easy to understand! You have no idea how helpful this is!

  • @amirmahdimohamadian6732
    @amirmahdimohamadian6732 2 ปีที่แล้ว

    I never comment on videos, but DUDE... you are a life saver! Thanks for everything!

  • @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

  • @joydeepr007
    @joydeepr007 2 ปีที่แล้ว

    I just saw this video in 2x speed and still understood everything. You're awesome 🎉

  • @STUPIDYOUTUBE_HIDINGMSGS
    @STUPIDYOUTUBE_HIDINGMSGS 5 หลายเดือนก่อน

    Thanks Pedro, your examples and the way you teach is easier to follow compares to most youtubers with similar topic.

  • @jvandco30
    @jvandco30 2 ปีที่แล้ว +3

    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.

  • @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!!!

  • @VskiDevs
    @VskiDevs ปีที่แล้ว

    @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🔥💯

  • @flowerofash4439
    @flowerofash4439 2 ปีที่แล้ว +1

    very clear explanation, easy to understand and good articulation with great teaching pace.
    you deserve more subs

  • @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.

  • @juanchibrossa8569
    @juanchibrossa8569 2 ปีที่แล้ว

    Thank you so much, Pedro!
    Cheers from Argentina 🇦🇷

  • @changgiljeong9820
    @changgiljeong9820 2 ปีที่แล้ว +2

    Thank you so much Pedro, Your videos are always amazing!

  • @samnayakawadi
    @samnayakawadi 2 ปีที่แล้ว

    You did the right move. Seriously there are very less videos on v6. Thanks. Already Subscribed.

  •  11 หลายเดือนก่อน

    This is absolutely gold my friend. Keep going like this. I love you.

  • @noelpadavan5674
    @noelpadavan5674 2 ปีที่แล้ว +3

    This man stays reading my mind, just when I need this. Thank you!

  • @rodneyowusu9876
    @rodneyowusu9876 2 ปีที่แล้ว +1

    Great job Pedro. Everything made easy.

  • @brayandelgado2458
    @brayandelgado2458 ปีที่แล้ว

    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!

  • @codexjay674
    @codexjay674 2 ปีที่แล้ว

    Exactly what I'm looking for. Thank you Pedro

  • @PauloGois86
    @PauloGois86 2 ปีที่แล้ว

    Obrigado Pedro, és o maior! Estava difícil encontrar um tutorial para Router V6! Subscrito!!!

  • @coderjag8828
    @coderjag8828 2 ปีที่แล้ว

    Thank you for this tutorial! Every other one I've watched is on V5, so this was very helpful!

  • @anuragkasudhan3734
    @anuragkasudhan3734 ปีที่แล้ว +1

    te way you explain things, it is so simple and yet so effective. IT IS INDEED ONE OF THE BEST REACTJS TUTORIALS ON TH-cam. Kudos and more power to you. may god bless you. thanks, love from India.

  • @SkyrimBeast
    @SkyrimBeast 2 ปีที่แล้ว

    Like this video? No. LOVE this video? YES!! Many thanks Pedro 🙂

  • @debjyotinandi9140
    @debjyotinandi9140 ปีที่แล้ว +1

    bro you're a lifesaver fr fr

  • @mselbekk
    @mselbekk 2 ปีที่แล้ว

    This was great! Watched about 6 other videos which didn't work. Thanks a lot!

  • @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

  • @plaguegames3556
    @plaguegames3556 ปีที่แล้ว

    Plain and simple, thank you mate

  • @adithya00
    @adithya00 2 ปีที่แล้ว

    your explanation is very clear. It's a helpful tutorial. Thanks, Pedro!

  • @user-wl1jp1wd2p
    @user-wl1jp1wd2p 10 หลายเดือนก่อน

    Thank you so much... This is the simplest explanation i have seen for react router dom

  • @flashim103
    @flashim103 2 ปีที่แล้ว

    Thanks, I've been looking for a v6 tutorial. This was amazing!

  • @mkwaliyo
    @mkwaliyo ปีที่แล้ว

    All I can say is thanks man. Really appreciate

  • @alawy5551
    @alawy5551 ปีที่แล้ว

    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 :)

  • @user-lm9ve2js2t
    @user-lm9ve2js2t 2 ปีที่แล้ว +1

    Thanks a lot for your videos ~ I'm still learning web developing, and found your videos so helpful !

  • @derickasane8499
    @derickasane8499 2 ปีที่แล้ว

    very clear and intuitive. thanks pedro

  • @nomadicsoul2349
    @nomadicsoul2349 2 ปีที่แล้ว

    Thanks Man! You saved my week. Love your work. Simple and easy.

  • @olenayevtushok2014
    @olenayevtushok2014 ปีที่แล้ว

    Thank you, Pedro! It's a great explanation!

  • @ColeCaccamise
    @ColeCaccamise 2 ปีที่แล้ว

    Great video man! Appreciate you making this, helped me out a lot!

  • @faisalazhar9622
    @faisalazhar9622 2 ปีที่แล้ว

    I was facing problem on useParams. Problem solved thanks to you.

  • @abhinavagarwal7373
    @abhinavagarwal7373 2 ปีที่แล้ว

    Best video on the internet on this topic

  • @SquareRoot_
    @SquareRoot_ 2 ปีที่แล้ว

    Thank you for the quick refresher.

  • @dimitri07-r1g
    @dimitri07-r1g 2 ปีที่แล้ว

    I love you my guy you helped in fixing my issues, you get a subscriber!

  • @LIMLIMLIM111
    @LIMLIMLIM111 ปีที่แล้ว

    You saved me so much time learning router! Thank you so much :))

  • @walterbranco8798
    @walterbranco8798 2 ปีที่แล้ว +1

    Valeu, Pedro. Tutorial muito bom!!

  • @MMercon1
    @MMercon1 2 ปีที่แล้ว

    Thank you so much, this helped a lot. Extremely clear and concise tutorial.

  • @mohammedfareedh
    @mohammedfareedh 2 ปีที่แล้ว

    You are the best Instructor Bro.... Keep Rocking

  • @divyanshsao3846
    @divyanshsao3846 2 ปีที่แล้ว

    Man You are a life saver. This video was so full of information Thankyou so Much for this

  • @nickurchin9579
    @nickurchin9579 ปีที่แล้ว

    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.

  • @layagodfrey2768
    @layagodfrey2768 2 ปีที่แล้ว

    Thanks to Pedro.You have cleared my mind about routes.

  • @farihanashih2131
    @farihanashih2131 2 ปีที่แล้ว +1

    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

  • @kaisasa3164
    @kaisasa3164 2 ปีที่แล้ว

    you are a life saver which explains things so simple clearly and straight to the point, thank you so much! subscribed

  • @TheLongAndNarrowPath
    @TheLongAndNarrowPath 2 ปีที่แล้ว

    Excellent tutorial, helped me to understand the basics of react-router. Thanks!

  • @Nikoulkina
    @Nikoulkina 8 หลายเดือนก่อน

    Thank you for this concise and extremely useful video!

  • @ManpahulSingh
    @ManpahulSingh 2 ปีที่แล้ว +13

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      @@realdoomerhours Nice for you cuz I'm already using a new laptop for the same reason.

    • @realdoomerhours
      @realdoomerhours 2 ปีที่แล้ว

      @@artemmarketer5745 You have my sympathies.

  • @faris.abuali
    @faris.abuali 2 ปีที่แล้ว +1

    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

  • @002ashishkumar5
    @002ashishkumar5 2 ปีที่แล้ว +1

    Omg!! greatest explanation ever, cleareed all my doubts , thnx
    i always watch ur videos cuz its a lot clear and to the point

  • @solacech.
    @solacech. 2 ปีที่แล้ว

    thank you so much for the v6 update, i reallllyyyy needed this

  • @adamviktora6440
    @adamviktora6440 2 ปีที่แล้ว

    Extremely useful. Thank you!

  • @shantanulokhande1792
    @shantanulokhande1792 2 ปีที่แล้ว

    Absolutely loved the video. thanks !!!!

  • @Kris-to7vh
    @Kris-to7vh 2 ปีที่แล้ว

    wow thank you for real! this is incredibly clear and concise

  • @victorekea
    @victorekea 2 ปีที่แล้ว

    Very straightforward. Thanks for the video, Pedro.

  • @SUPREM00
    @SUPREM00 ปีที่แล้ว

    Finally someone who knows how to teach

  • @adeniyismart8539
    @adeniyismart8539 2 ปีที่แล้ว

    Awesome work, just what I needed

  • @ExtraWubWubs
    @ExtraWubWubs 2 ปีที่แล้ว

    Great tutorial man, huge help!

  • @jaylee5252
    @jaylee5252 ปีที่แล้ว +1

    This was really helpful and simple to understand. Thank you.

  • @davidelbaz9188
    @davidelbaz9188 ปีที่แล้ว

    You explain extremely good !

  • @farhadfallahi8200
    @farhadfallahi8200 2 ปีที่แล้ว

    This video helped me! Thanks, Pedro Tech ❤

  • @sebastianonofrei8180
    @sebastianonofrei8180 2 ปีที่แล้ว

    Thank you very much Pedro ! This helped me a lot .

  • @jonathabot
    @jonathabot ปีที่แล้ว

    Thank you. You literally saved my live.

  • @captainbeardedman7645
    @captainbeardedman7645 2 ปีที่แล้ว

    Very useful tutorial. Google was of no help for me 2022. But this video just made sense.

  • @caffeinated-pixels
    @caffeinated-pixels 2 ปีที่แล้ว +4

    Cool, this helped me migrate an app from v5 to v6. Thanks!

  • @mayuribharadva7554
    @mayuribharadva7554 2 ปีที่แล้ว

    Thanks a lot for the explanation of new updated concept of Route dom .. It solved my problem.

  • @kristinabondarenko8147
    @kristinabondarenko8147 2 ปีที่แล้ว

    God bless you for such talent to explain things!!!!

  • @fullstackspiderman
    @fullstackspiderman 2 ปีที่แล้ว

    Very helpful at the right time. Thank you Pedro.. Love and Support from India..

  • @KSmithVids
    @KSmithVids 2 ปีที่แล้ว

    New subscriber here, great job explaining things in a clear & concise way! Good stuff 👍

  • @chinmaykunte7362
    @chinmaykunte7362 2 ปีที่แล้ว

    The best I have seen so far!!!!

  • @adrianemmanuelfazmercado5985
    @adrianemmanuelfazmercado5985 2 ปีที่แล้ว

    Thank you so much! This is exactly what I needed