React Router 7 Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ม.ค. 2025

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

  • @bholmesdev
    @bholmesdev หลายเดือนก่อน +21

    You did it. You finally made routing simple. The answer wasn’t pure file based or pure config based, but somewhere in the codegen middle. Thanks for pushing through to find the solution!

    • @kikevanegazz325
      @kikevanegazz325 5 วันที่ผ่านมา

      ...and it's elegant with a small learning curve.

  • @MrJeyOnCrossfit
    @MrJeyOnCrossfit 27 วันที่ผ่านมา +2

    So much value in this video, very usefull to get hands on react router 7. Thanks to all the team!

  • @chazkondo
    @chazkondo 16 วันที่ผ่านมา +1

    great vid Brooks! very concise and helpful

  • @ssawass
    @ssawass 11 วันที่ผ่านมา

    Great and cohesive tutorial, thanks for sharing!

  • @aharef
    @aharef 29 วันที่ผ่านมา +2

    Awesome tech, awesome tutorial, thank you!

  • @shivamjhaa
    @shivamjhaa หลายเดือนก่อน +1

    This is really, really good. Everything coming together

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

    I have been waiting for this video! Thank you.

  • @HaroldAnderson-of6gb
    @HaroldAnderson-of6gb หลายเดือนก่อน +8

    Is there a simpler introduction to React Router 7? This video went over my head very quickly. I have tried unsuccessfully to work through the tutorial on the documentation, but it does not explain the concepts either. Thanks.

    • @kikevanegazz325
      @kikevanegazz325 5 วันที่ผ่านมา +2

      Are you familiar with React router V6? Server Side Rendering? Server actions? Remix vs Next js solution and all that? If you aren't it's normal to feel blown off by this tutorial. However, this tutorial is clear and consice. Find information about that come back to the video. It will make more sense.

  • @yooujiin
    @yooujiin 18 วันที่ผ่านมา +1

    I can't believe I was fighting up with flat routes. This is soooo much easier once you understand it.

  • @ttaylor9916
    @ttaylor9916 17 วันที่ผ่านมา +2

    great video.. all worked.. would be nice though if there was git for the final code.

  • @umitcelik5508
    @umitcelik5508 6 วันที่ผ่านมา

    This new data loading and fallback features is awesome. We could say goodbye for useEffect on client side, almost. Last feature i wish that file based routing. It is good for clean structure.

  • @eleah2665
    @eleah2665 หลายเดือนก่อน +1

    Thanks Brooks. Very helpful.

  • @ifindev
    @ifindev 4 วันที่ผ่านมา +1

    I like how clean loaders and actions are, but I don’t really like the facts that I need to define a single action inside a .tsx folder under routes dir. It feels weird for a component file to contains only function logics.
    For my apps’ use cases, sometimes I can have multiple mutations in a single page. Not really sure how this all will fit in. I am afraid all the actions codes can become a very big mess when it happens.

  • @ginger-viking
    @ginger-viking 25 วันที่ผ่านมา +1

    Great tutorial, thanks

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

    How do you handle auth with the new React Router 7? Is it basically the same as Remix?

    • @Remix-Run
      @Remix-Run  หลายเดือนก่อน +6

      Yes, all strategies that worked in Remix apply in React Router if you're using the Vite plugin (framework mode)
      The popular library remix-auth has already been updated to support React Router 7: github.com/sergiodxa/remix-auth

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

    Very exciting - nice tutorial!

  • @refeals
    @refeals หลายเดือนก่อน +1

    Awesome tutorial, thanks!

  • @frozen_tortus
    @frozen_tortus หลายเดือนก่อน +1

    how would you quickly go to visit route file from routes? cmd+click wont work because its not full path? Also, you cant auto complete corect?
    I tried it and so far my experience was painfull with gotchas like that. Editor shows all is fine, then I open an app and its not working, turns out path is wrong, and terminal shows err, and its not like you made errors easy to read.

  • @brianmwangi6599
    @brianmwangi6599 หลายเดือนก่อน +2

    Hey Brooks, why did you put the action function for creating new contacts in the root.tsx instead of sidebar.tsx?

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

      It's upto you where you want to put it

    • @ReactTipsWithBrooks
      @ReactTipsWithBrooks หลายเดือนก่อน +2

      I probably should have explained it better, but it's because you can't have an action in a layout route, since a layout doesn't have a URL and to trigger an action you have to POST (or PUT or whatever non-GET thing you're doing) to a specific URL.
      In this case the root is where the form would POST to by default default ("localhost:5173/"), so I just put it in there. You could set the action field on the form to whatever url you want and create an action function in a resource route (like we did with routes/destroy-contact) if you want to, which honestly might be a little more clear.

  • @ashkan.arabim
    @ashkan.arabim 5 วันที่ผ่านมา

    is there a repo for the full code? I wanna keep it as a reference...

  • @RaselKarim-b4z
    @RaselKarim-b4z 3 วันที่ผ่านมา

    can someone please explain, how related profiles sidebar's star icon ( * ) is being updated, while click on the contact detail page's star icon ( * ) ?

  • @designerjehovah4453
    @designerjehovah4453 หลายเดือนก่อน +1

    this is so exciting

  • @vfshera
    @vfshera หลายเดือนก่อน +1

    This is great!

  • @chopsueey
    @chopsueey 14 วันที่ผ่านมา

    Awesome tutorial, ty!
    But how do I or how should I access environment variables on the server?

    • @chopsueey
      @chopsueey 13 วันที่ผ่านมา

      nvm, I mixed some server-side and client-side code, so it worked in dev mode but did not compile as build in some weird way

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

    Great tutorial!!

  • @KikeVanegas23
    @KikeVanegas23 5 วันที่ผ่านมา

    The one thing I disagree with is the submit in the onChange event, refreshing the page and obtaining data on each keystroke. Plenty of information has been shared on this with React and all. We have been moving forward talking about optimisation which brought us to SSR and SSA to now have it all re-render on each keystroke.

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

    We cannot deploy to Vercel anymore after upgrading react-router 6 to 7 framework mode. Could you please give me reference or guide?

  • @jeffsegovia00
    @jeffsegovia00 หลายเดือนก่อน +1

    Thanks Brooks. 🎉

  • @prashlovessamosa
    @prashlovessamosa หลายเดือนก่อน +1

    Thanks for sharing

  • @theSlavenIvanov
    @theSlavenIvanov 12 วันที่ผ่านมา

    Hi, awesome video! Your autocomplete while renaming from to is insane! How did you get it to work like that?

  • @TheMERABANABER
    @TheMERABANABER หลายเดือนก่อน +3

    I'm never using tanstack router ever again, thank god

    • @bholmesdev
      @bholmesdev หลายเดือนก่อน +2

      Yeah, I wanted to enjoy it but I was slammed with a wall of complexity when onboarding. Partially the docs, partially the verbose API design. RR v7 feels far nicer to start

    • @TheMERABANABER
      @TheMERABANABER หลายเดือนก่อน +1

      @@bholmesdev I hate the docs, most of what you actually need is outdated... The focus is very narrowed on ssr

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

    How can we build mdx blog site with RR7?
    Is there any example repo

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

    any plans to release docs on using supabase auth with the new rr v7? would be greatly appreciated

    • @ReactTipsWithBrooks
      @ReactTipsWithBrooks หลายเดือนก่อน +1

      Probably not on our site, but there are likely some community resources out there, and we expect supabase to create some resources as well. Given that they're the experts anything they create is going to be better than what we do.
      Additionally, as soon as we create a doc for one auth/database provider, we feel the need to create docs for all of them. They quickly get out of date and prove to not be very useful, so we find it better when the community/providers themselves create these resources.

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

    still no middleware? I have to copy paste auth logic into every route?

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

      We need it fast

    • @ReactTipsWithBrooks
      @ReactTipsWithBrooks หลายเดือนก่อน +2

      We're working on it! Thanks for your patience

  • @ytuser6276
    @ytuser6276 หลายเดือนก่อน +2

    2:02 import from "@rem-... @react-router
    haha

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

    Love the tutorial! is it possible to get access to this repository? Thanks!

    • @ReactTipsWithBrooks
      @ReactTipsWithBrooks หลายเดือนก่อน +1

      It's just in the react-router repo under the "tutorial/" directory

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

      @@ReactTipsWithBrooks cool! I was looking for contacts and it was address book 🤦

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

    When will we get middleware?? Really cool tutorial btw.

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

    Can someone please explain to me . Remix and react router: are these two different framework? Am currently building sites with remix.

    • @danestevens1
      @danestevens1 หลายเดือนก่อน +3

      Remix is now react-router (framework mode).

    • @Remix-Run
      @Remix-Run  หลายเดือนก่อน +5

      What @danestevens1 said
      We announced this direction back in May and finished the work not to long ago
      You can read more about our strategy here: remix.run/blog/incremental-path-to-react-19

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

      Remix is nothing but React ROUTER + "framework" features

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

      @@danestevens1 wow that's amazing

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

      @@danestevens1 wow this is awesome

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

    thanks

  • @mohammadhammal2440
    @mohammadhammal2440 11 วันที่ผ่านมา

    Its finally stable, and I can stop using Next.js

  • @Nilankar
    @Nilankar 13 วันที่ผ่านมา

    By seeing things logically and implementing them, AI is nothing to this.

  • @MuhammadNurIslomToxtamishhoji-
    @MuhammadNurIslomToxtamishhoji- 17 วันที่ผ่านมา

    But where's authentication and authorization?

  • @lpgod5928
    @lpgod5928 22 ชั่วโมงที่ผ่านมา

    Remix is kill

  • @yes2550
    @yes2550 22 วันที่ผ่านมา

    Hello how are you doing?

  • @Topsquadjapan
    @Topsquadjapan 21 วันที่ผ่านมา

    I’m confused on what this channel even is if it’s now react router.

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

    Great content. Very intuitive and fluid. Thanks Brooks!
    Q: How soon is RR7 integrating in hydrogen? The Shopify Winter Edition was disappointing in that regard.