Learn React Router v6 In 45 Minutes

Sdílet
Vložit
  • čas přidán 1. 06. 2024
  • FREE React Hooks Course: courses.webdevsimplified.com/...
    Nearly every app in React needs to handle routing and by far the most popular library for handling routing is React Router. In this video I will break down everything you need to know about React Router v6 so you can master routing in your next project.
    📚 Materials/References:
    FREE React Hooks Course: courses.webdevsimplified.com/...
    React Router Blog Article: blog.webdevsimplified.com/202...
    🌎 Find Me Here:
    My Blog: blog.webdevsimplified.com
    My Courses: courses.webdevsimplified.com
    Patreon: / webdevsimplified
    Twitter: / devsimplified
    Discord: / discord
    GitHub: github.com/WebDevSimplified
    CodePen: codepen.io/WebDevSimplified
    ⏱️ Timestamps:
    00:00 - Introduction
    00:45 - Basics
    06:18 - Router Types
    10:22 - Dynamic Routes
    13:40 - Route Specificity
    16:46 - Nested Routes
    28:54 - useRoutes Hooks
    30:32 - Link Component
    32:50 - NavLink Component
    35:57 - Navigate Component
    36:39 - useNavigate Hook
    39:07 - Search Parameters
    43:16 - Navigation State
    #ReactRouter #WDS #ReactJS

Komentáře • 538

  • @Sweetcommando
    @Sweetcommando Před rokem +293

    This man is a genius. I cannot thank him enough. Every other tutorial, even the official documentation, shoves way too much extra stuff in your face before they go over the basics. I appreciate the structure and clarity going on here.

    • @happybits
      @happybits Před rokem +2

      I agree, he's the best

    • @agentp9900
      @agentp9900 Před 9 měsíci +6

      Also he has that disney-prince perfect hair 😭

    • @8hoanggiang213
      @8hoanggiang213 Před 7 měsíci +1

      This is a useful tutorial.

  • @Exypnos
    @Exypnos Před rokem +112

    This feels like paid content that I didn't pay for. Learned so much more in a half hour video than I have in a 3 month course. Truly amazing!

  • @DiestroCorleone
    @DiestroCorleone Před rokem +31

    I think I know my Router v6, but I'll definitely check this video out cuz, knowing Kyle, he probably has some cool tricks up his sleeve.

  • @beefcakees
    @beefcakees Před rokem +12

    Dope, I will probably have to watch it one more time. Really cool to see how much you have grown compared to your old videos. You are so much more expressive and enjoyable to listen to. Keep up the good work.

  • @sugaith
    @sugaith Před rokem +3

    The clear, firm and fast way you teach is impressive. Thanks

  • @iJavaScript
    @iJavaScript Před 11 měsíci +1

    I usually don't learn a lot from tutorials, but this one was by far my all time favorite tutorial because I actually learned a tone!
    Thanks man!

  • @aim-scom-lt9038
    @aim-scom-lt9038 Před rokem +5

    Pack 45 minutes, a well done tutorial I think the community should start thinking to give you a title like The WDS Professor.

  • @natanelelkutski9966
    @natanelelkutski9966 Před 11 měsíci +15

    He is a true professional and a teacher.
    Honestly I've learned from this tutorial more than in a full length course.
    Thank you and please keep sharing simplified and perfectly explained content as the above.

  • @sxkdk01
    @sxkdk01 Před 10 měsíci +3

    i generally dont watch tutorials because i feel like i am wasting my time and just read the documentation but this video has helped me a lot because the documentation was complicated. thanks a lot

    • @liuze9280
      @liuze9280 Před 10 měsíci +2

      Yeah, I was trying the documentation and they hide a lot of materials... they are just like do this., do that.. never explain why

    • @IonizedComa
      @IonizedComa Před 3 měsíci

      @@liuze9280that's 99% of documentation out there with extensive material, that's why I end up writing my own cheat sheets and notes when I learn a tool

  • @igorowczarz534
    @igorowczarz534 Před rokem +3

    Man you're saving my life right now. I started to learn React Router but when I saw those massive information block I was spooked by it. Thanks for this video!

  • @adityaanuragi6916
    @adityaanuragi6916 Před 11 měsíci +4

    You're definitely the best teacher when it comes to web development imo. Even your react hooks course that I took felt perfect man you're the best

  • @zakichoudhury
    @zakichoudhury Před rokem +1

    Thank you so much for explaining this topic so efficiently. For someone who is new to react and had no experience about routing in react world, this was very much helpful. It gave me a pretty solid understanding to begin I think.

  • @haruka3203
    @haruka3203 Před rokem +29

    I'm evolving from a normal html/css/js web developer into a react developer, and my god I'm just so impressed with npm and react right now. So much stuff to make coding easier!
    I also love your tutorial on how to get started with routers. I was still using anchors and href this I discovered routers not too long ago :)

  • @avneet12284
    @avneet12284 Před rokem +2

    Great video.
    1million subs ! Bro, that's huge ! Years of hard work and dedication paid off. Congrats a ton ! Well deserved !

  • @zikobht4623
    @zikobht4623 Před rokem

    Holly heavens, i have been struggling with react router v6 and i was planning to give it a shot and read the documentation and here you are saving for the day, thank you

  • @MaksymNazarets
    @MaksymNazarets Před rokem +1

    This is brilliant!!! You're an amazing teacher! You're explaining so fast, but so good, I can't believe anyone can be so good at it

  • @terrythompson2574
    @terrythompson2574 Před rokem +8

    Thanks Kyle, highly informative and helpful as ever, really helped me with an issue I was having with the nested router functionality.

  • @kekoHere0610
    @kekoHere0610 Před měsícem

    Wow, this was very helpful. I appreciate how you did not cover just the basics but all the small and big parts. You are such a great instructor. Thanks for taking out your time and making it for us. I can not thank you enough.

  • @aryankhullar7101
    @aryankhullar7101 Před rokem +1

    Man, I love you! So concise and efficient, you're one of the best educators out here.

  • @PrabhjotSingh-xn1rs
    @PrabhjotSingh-xn1rs Před rokem +2

    Seriously this video is different from other videos where they just tell how to setup a thing and dont go in details.
    Thanks bro

  • @GamerX-qn7ou
    @GamerX-qn7ou Před 9 měsíci

    Very high quality content from this man, every time I have doubts on certain topics I just look for his tutorial and really helps me to understand, crazy precise and concise explanations (IMO). I guess he isn't joking when he says "my job is to simplify the web for you". Respect good sir!!!

  • @cyriljephery2662
    @cyriljephery2662 Před rokem

    Thank you fr, solved my problem in literally 5 minutes. Spent the entire day on different tutorials and even the documentation and you solved my problem in 5 minutes.... Thank you again

  • @miguelangelsepulvedaatenas8446

    Why the heck are you so good at explaining? i love the way you explain man!! you're the best teacher i've ever had hands down

  • @salpygidis
    @salpygidis Před rokem +31

    Could you also go over protected pages like account pages once you are logged in?!

    • @Alb0z32
      @Alb0z32 Před rokem +1

      was wondering about that one aswell, with the new version it seems to be a bit more complicated imo

    • @WebDevSimplified
      @WebDevSimplified  Před rokem +8

      This video should hopefully help with how to do this. It is using an older version of React Router, but the general idea should be the same. czcams.com/video/PKwu15ldZ7k/video.html

    • @patrickwilliams8209
      @patrickwilliams8209 Před rokem

      you can just create an HOC

  • @emanuelsiu1232
    @emanuelsiu1232 Před rokem +1

    Love your videos. Quick, concise, clear, and well explained. Thank you!

  • @ENI232
    @ENI232 Před rokem

    was working on a project, had some obscure questions that google didn’t help with, but this video somehow magically answered literally everything right when i needed it.

  • @domain9889
    @domain9889 Před rokem +37

    Odd question, but is there a chance you can include a keyboard overlay that tracks your button presses? Would love to see the shortcuts you use in real time

  • @neojunwei_8544
    @neojunwei_8544 Před 5 měsíci +9

    didnt know that Homelander now teaches react

  • @alexcolbourn9142
    @alexcolbourn9142 Před rokem

    Appreciate all your videos! I always look for your breakdown on pretty much any topic that pops up now.

  • @poro4901
    @poro4901 Před rokem +1

    hey web dev simplified, you totally saved my life for creating this masterpiece, very clearly explained for every details, truly appreciate your hard work, please keep it up!

  • @andrebuitoni9686
    @andrebuitoni9686 Před 8 měsíci

    3 minutes into the video and my page is already working! Awesome! Now I'm going to watch the entire thing!

  • @thearcadiusproject
    @thearcadiusproject Před 10 měsíci

    The basics really helped me complete the header component for a project of mine!!! Very useful!! Will watch the rest at another point too!!

  • @BiofordxD
    @BiofordxD Před rokem

    you literally just saved my life holy shit i've been trying to learn this stuff for like a whole week and you just magically did it THANK YOU

  • @yusufdalal279
    @yusufdalal279 Před rokem +1

    Amazing content and with best possible explanation , Didn't know earlier how many options we can have in just one topics... hats off

  • @adityanayak01
    @adityanayak01 Před rokem

    Seriously just few days back finished your react navbar route video and now this comes🤩🤩

  • @ajlebeau
    @ajlebeau Před 2 měsíci

    Wow! I feel like I watched this on 1.5 speed. Such amazing information in such a short period of time! I'll definitely have to watch this a few times for it all to sink in. Exciting!!!

  • @system2072
    @system2072 Před rokem +1

    great one kyle... i was just ignoring react route v5 and implementing v6 for my project... compared to v5, v6 is pretty straight forward...

  • @delta4v
    @delta4v Před rokem

    You earn my respect for the extra content routing. I never think about it. Thank you for sharing that

  • @ramonmaximiliano3557
    @ramonmaximiliano3557 Před rokem

    Thanks, perfect as always, one of the most complete videos on the topic I've seen!

  • @adexmokson7185
    @adexmokson7185 Před 9 měsíci +2

    This is a great lecture and well tutored. A little input. The react-router-dom is already pre-installed with create-react-app so we do not need to install it seperately when dealing with React apps. Routing become complex in React because React is a SPA - single page application however react-router-dom simplifies routing system in React application. Great lecture and the way you simplified it is insane. Respect.

  • @martinforget343
    @martinforget343 Před rokem +3

    Your a pure genius, it seems so much easier when listening to you! Thanks!

  • @vaibhavmatere18
    @vaibhavmatere18 Před rokem +1

    Thank you so much for explaining with practical examples and code walkthrough! I learnt it well!!!

  • @fei5002
    @fei5002 Před rokem

    You really make those content simple and easy to understand, genius!

  • @MayeenulIslam
    @MayeenulIslam Před rokem

    Simply loved it. Concise. Proved. Bull's Eye stuff.
    Thank you sooooo much

  • @tisferry8205
    @tisferry8205 Před rokem +1

    Congratulations on your 1 million subscribers! You’ll have another 1 million in no time, I’m absolutely sure. Keep them coming!

  • @sviatoslav8776
    @sviatoslav8776 Před 3 měsíci

    Thanks a lot for the course. It is really full and comprehensive.

  • @minzeymichael
    @minzeymichael Před 10 měsíci

    This is the first programming tutorial I've watched at 1x. That is a huge compliment in my book.

  • @iftakharhussain
    @iftakharhussain Před rokem +1

    Thank you for these comprehensive videos. I would be very grateful if you upload a full in-depth video on Redux Tookit and RTK Query.

  • @gmjitendra
    @gmjitendra Před 7 měsíci

    you are awesome. you covered almost everything that I wanted to know. Thank you so much Kyle.

  • @davidl.7747
    @davidl.7747 Před 4 měsíci

    Can not thank you enough man !
    You've really summarised it efficiently !

  • @aklilesup5463
    @aklilesup5463 Před rokem +2

    Yoo, this is so in-depth! Thanks😀

  • @martinheywang4962
    @martinheywang4962 Před rokem +65

    I would love to see a video from you talking about Git Flow (and GitHub flow). I'm sure it will help a lot of new contributors (including myself) understand how most repos work.
    I saw an article about it but I'm still a bit confused how things work.

    • @internetexplorer7880
      @internetexplorer7880 Před rokem

      Along with GitLab flow

    • @destroreact5706
      @destroreact5706 Před rokem +4

      Also how to do CI/CD (Continuous integration/ Continuous Deployment) with git.

    • @Biowulf21
      @Biowulf21 Před rokem

      A more intermediate to advanced tutorial would be awesome as well

  • @simonpetrovic502
    @simonpetrovic502 Před 6 měsíci

    Thank you for all free guides! Very helpful and easy to understand.

  • @htetwaiyan2499
    @htetwaiyan2499 Před rokem

    Thank you Kyle, your videos always help.

  • @KedarBasutkar
    @KedarBasutkar Před rokem

    Awesome video Kyle. It served as a nice refresher!

  • @aishastechroom
    @aishastechroom Před měsícem

    This is very insightful. Thank you for the tutorial.

  • @arlaxia
    @arlaxia Před rokem +1

    This was an excellent video! A great summary of React router, helped me a lot.

  • @verldopia
    @verldopia Před rokem

    So I had a bug for days, and this man showed it to me 2mins into the video. Love it

  • @Solo_playz
    @Solo_playz Před 3 měsíci

    bro just created a visual representation of react-router-dom v6 documentation in one go🤯🤯you are amazing bro & thank you very much 💖 for providing web dev experience in a simplified version

  • @EddyMunsta
    @EddyMunsta Před 3 měsíci

    Nice video, helped me through my routing exercise.

  • @RudraSingh-pb5ls
    @RudraSingh-pb5ls Před rokem

    Kyle i have to watch ur router v6 video at 0.9x speed and still keep replayong certain segment to understand it properly. It's way too much to consume in one go and i still very much love it !!

  • @simone-oq4if
    @simone-oq4if Před 7 měsíci

    very comprehensive explanation and easy to understand. Thankyou

  • @felicia499
    @felicia499 Před rokem

    Thanks for your generous and pedagogical information.

  • @itsahmedbasha
    @itsahmedbasha Před rokem

    Thanks mate 🙏, very clean of explanation, I'm new to react and with your video alone I learned React Router very quickly. Thanks once again 🙂

  • @JAcOBRuK
    @JAcOBRuK Před 4 měsíci

    amazing tutorial, really well explained, precise and concise

  • @bipon68
    @bipon68 Před rokem

    Congratulations for 1M Subscriber. Really happy to see. You deserved it. Go ahead.

  • @miq_5239
    @miq_5239 Před 2 měsíci +1

    This was so hard, but I was able to follow it. Thanks man

  • @hezzronaustin7548
    @hezzronaustin7548 Před rokem

    Perfect tutorial ! This is my first ever comment on CZcams and I've watched many vids but learned so much so much quickly in this video 👏👏

  • @hamoodhabibi7026
    @hamoodhabibi7026 Před 5 měsíci

    Great overview now I can go ahead and read the docs with more confidence :)

  • @gabhanhome
    @gabhanhome Před 10 měsíci

    Fantastic tutorial for someone newish to React and React Router. Much appreciated!

  • @naveedalirehmani4135
    @naveedalirehmani4135 Před rokem

    this video was extremlly helpful thank you very much.

  • @hadjerjoo6744
    @hadjerjoo6744 Před rokem

    This is the best tutorial I've seen so far, Thank you so much !!

  • @hirantravassos6747
    @hirantravassos6747 Před rokem +14

    My man!!! That's better than any paid course... You should hire someone to translate this to other languages, many non english speakers are losing your awesome content!!
    Tnx!

  • @nabintimilsina8404
    @nabintimilsina8404 Před rokem

    Thanks man it really helps everytime i caught problem with react router you really great man

  • @clerus2
    @clerus2 Před rokem

    This content is very useful and easy to understand. You are the best!

  • @iafofkhadze4628
    @iafofkhadze4628 Před rokem

    i love your tutorials. it's really clear and easy to understand. btw glad to see u hit 1m subscribers tho

  • @mohamedkhaled3047
    @mohamedkhaled3047 Před rokem

    amazing work man you covered everything thanks

  • @maq3009
    @maq3009 Před rokem

    This guy is my hero! For reals, thanks man, your tutorials have saved my butt in this coding bootcamp I'm taking.

  • @clixgaming2504
    @clixgaming2504 Před rokem

    You have saved my life so many times with your videos! Thanks just for existing

  • @Vedant-M
    @Vedant-M Před rokem

    Kyle man you are god sent, can't thank you enough for uploading such really useful videos.

  • @yakligian
    @yakligian Před rokem

    This video came at the perfect time! Thanks so much!

  • @okaforsomtoo4803
    @okaforsomtoo4803 Před rokem

    Thank you kind sir. Just subscribed. The way you explain things is simple and informative

  • @megatronskneecap
    @megatronskneecap Před 2 měsíci

    Thank you so, so much. This is the guide about this on all of CZcams.

  • @Anton-hg2wv
    @Anton-hg2wv Před rokem +3

    You are extremely good teacher, thanks for ur content!

  • @qiwenxiao7260
    @qiwenxiao7260 Před rokem

    OMG This is so helpful. This makes the reference page extremely readable!

  • @zabinoori49
    @zabinoori49 Před měsícem +1

    best explanition ever covered every thing i don not know how to thank you

  • @saberstoner
    @saberstoner Před rokem

    thank you so much, the best and most comprehensive router v6 tutorial!

  • @simple8810
    @simple8810 Před rokem +2

    Man you really simplifying web for us, Huge respect and lots of love🤩🤩

  • @PAINZOR
    @PAINZOR Před rokem

    Thanks Kyle, as always the best one. Clear and powerful!

  • @MisterM0nkey
    @MisterM0nkey Před rokem

    Thank you so much. I always got lost in their documentation.

  • @calvingilbert2173
    @calvingilbert2173 Před rokem

    Great video! Thanks for helping me through a blocker!

  • @SemenAlexndrovich
    @SemenAlexndrovich Před rokem

    Very good explanation. Thank you!

  • @iep6228
    @iep6228 Před rokem

    Thank you Kyle! Once again saving the day.

  • @AbdelSamieShamsi-ze3yt
    @AbdelSamieShamsi-ze3yt Před 11 měsíci

    Thank you bro it helped me a lot . I always had problem with this .

  • @vivienpmc
    @vivienpmc Před 11 měsíci

    One of the best updated React Router Dom videos! 👍🏼

  • @harrypidd4755
    @harrypidd4755 Před 7 měsíci

    Fantastic tutorial. Thanks, legend.

  • @eudeamonism
    @eudeamonism Před rokem

    Wow. It worked really well and smoothly.

  • @diptimalik0101
    @diptimalik0101 Před 8 dny

    This was awesomely explained !!

  • @erickaboge9473
    @erickaboge9473 Před 10 měsíci

    This is brilliant you just earned a subscriber

  • @arikmosfor4907
    @arikmosfor4907 Před rokem

    perfect tutorial!perfect explained .thank you 🙏