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!
@MrJeyOnCrossfit2 күн бұрын
So much value in this video, very usefull to get hands on react router 7. Thanks to all the team!
@ginger-viking6 сағат бұрын
Great tutorial, thanks
@aharef4 күн бұрын
Awesome tech, awesome tutorial, thank you!
@the_beckers_food12 күн бұрын
I have been waiting for this video! Thank you.
@shivamjhaa13 күн бұрын
This is really, really good. Everything coming together
@sajadtorkamani939911 күн бұрын
Very exciting - nice tutorial!
@iriel492ki13 күн бұрын
How do you handle auth with the new React Router 7? Is it basically the same as Remix?
@Remix-Run13 күн бұрын
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
@eleah266512 күн бұрын
Thanks Brooks. Very helpful.
@brianmwangi659912 күн бұрын
Hey Brooks, why did you put the action function for creating new contacts in the root.tsx instead of sidebar.tsx?
@Adityacode10 күн бұрын
It's upto you where you want to put it
@ReactTipsWithBrooks10 күн бұрын
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.
@HaroldAnderson-of6gb10 күн бұрын
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.
@refeals13 күн бұрын
Awesome tutorial, thanks!
@philippeaka277212 күн бұрын
Great tutorial!!
@thethmuueinsoe10 күн бұрын
We cannot deploy to Vercel anymore after upgrading react-router 6 to 7 framework mode. Could you please give me reference or guide?
@saurabh75prakash13 күн бұрын
How can we build mdx blog site with RR7? Is there any example repo
@frozen_tortus13 күн бұрын
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.
@AlexanderDensley13 күн бұрын
any plans to release docs on using supabase auth with the new rr v7? would be greatly appreciated
@ReactTipsWithBrooks10 күн бұрын
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.
@designerjehovah445312 күн бұрын
this is so exciting
@qapplor11 күн бұрын
still no middleware? I have to copy paste auth logic into every route?
@Adityacode10 күн бұрын
We need it fast
@ReactTipsWithBrooks10 күн бұрын
We're working on it! Thanks for your patience
@manutechashuman12 күн бұрын
Love the tutorial! is it possible to get access to this repository? Thanks!
@ReactTipsWithBrooks10 күн бұрын
It's just in the react-router repo under the "tutorial/" directory
@manutechashuman10 күн бұрын
@@ReactTipsWithBrooks cool! I was looking for contacts and it was address book 🤦
@Adityacode10 күн бұрын
When will we get middleware?? Really cool tutorial btw.
@ReactTipsWithBrooks10 күн бұрын
Soon!
@jeffsegovia0013 күн бұрын
Thanks Brooks. 🎉
@ReactTipsWithBrooks13 күн бұрын
No problem!
@TheMERABANABER13 күн бұрын
I'm never using tanstack router ever again, thank god
@bholmesdev11 күн бұрын
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
@TheMERABANABER10 күн бұрын
@@bholmesdev I hate the docs, most of what you actually need is outdated... The focus is very narrowed on ssr
@AbuBakr113 күн бұрын
Can someone please explain to me . Remix and react router: are these two different framework? Am currently building sites with remix.
@danestevens113 күн бұрын
Remix is now react-router (framework mode).
@Remix-Run13 күн бұрын
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
@lamhung489912 күн бұрын
Remix is nothing but React ROUTER + "framework" features
@AbuBakr112 күн бұрын
@@danestevens1 wow that's amazing
@AbuBakr112 күн бұрын
@@danestevens1 wow this is awesome
@prashlovessamosa13 күн бұрын
Thanks for sharing
@vfshera13 күн бұрын
THis is great!
@ytuser627610 күн бұрын
2:02 import from "@rem-... @react-router haha
@ReactTipsWithBrooks10 күн бұрын
🥲
@itsZavier_112 күн бұрын
thanks
@dodiiiii112 күн бұрын
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.