The End Of React Router

2024 ж. 25 Нау.
76 442 Рет қаралды

React Router was an essential part of the success of React. It is finally dead. Let's talk about why, including a bunch of Remix chatter.
SOURCES
/ 1767560366027129211
github.com/molefrog/wouter
Check out my Twitch, Twitter, Discord more at t3.gg
S/O Ph4se0n3 for the awesome edit 🙏

Пікірлер
  • I'm not sure how to React to this.

    @AquaQuokka@AquaQuokkaАй бұрын
    • Just go to react router npm package and follow the instructions.

      @gillall4828@gillall4828Ай бұрын
    • I really can't Express my feelings and what the Next steps should be.

      @Redditard@RedditardАй бұрын
    • ​@@Redditard I couldn't have asked for a better reply 😂

      @AquaQuokka@AquaQuokkaАй бұрын
    • this really brought a new point of Vue to the subject. We should all take Nodes

      @cetincetindag@cetincetindagАй бұрын
    • Bruh ​@@gillall4828

      @cslearn3044@cslearn3044Ай бұрын
  • Imagine showing this madness to someone who is unfamiliar with or new to webdev

    @william383@william383Ай бұрын
    • i am this person i havent even gotten to all of the js nonsense yet. ive just been reading about the history of http and html for now on mdn

      @bm1259@bm1259Ай бұрын
    • Heck I’ve been at it for almost 10 years and it still makes me nauseous. 😅 For 90% of web dev you just pick a technology and run with it.

      @bytehala@bytehalaАй бұрын
    • This is me, learning JS at the moment and looking into technologies and frameworks to look for. It is quite overwhelming, but everyday I learn something new. I'll get there eventually.

      @DotSquall@DotSquallАй бұрын
    • Absolute insanity... i will never go near any React if i can

      @tobyzieglerrr@tobyzieglerrrАй бұрын
    • They won't need to care if they use php and laravel or rails and get on with being productive instead of jumping on the bandwagon.

      @edism@edismАй бұрын
  • The final breaking change. They've been preparing us for this for years

    @rubberdork@rubberdorkАй бұрын
  • it is so relieving that i don't know any of what this video is about

    @S4ntia60@S4ntia60Ай бұрын
  • What if turbopack and rolldown team combines??? They are trying to build same thing right?? In the same language

    @jitx2797@jitx2797Ай бұрын
  • Damn guys are you still in 2014 with these 'first,seconds...' ridiculous. I'm 8th btw

    @romanr5962@romanr5962Ай бұрын
    • 💀

      @SupertigerDev@SupertigerDevАй бұрын
    • sometimes I wish I was still in 2014

      @MadsterV@MadsterVАй бұрын
    • First

      @skaffen@skaffen19 күн бұрын
  • In angular, we only use angular routing and happily live after

    @kazishahinDe@kazishahinDeАй бұрын
    • angular and happy don't go in the same sentence :/

      @oggy112@oggy112Ай бұрын
    • true xD been using angular since version 2 and its version 17 now hahaha

      @backupmemories897@backupmemories897Ай бұрын
    • angular devs have got fetish for java and C# and they can't accept that

      @jitx2797@jitx2797Ай бұрын
    • ​@@mac.ignacio lmao no. When we are talking about frontend components as functions are better than classes

      @wojtek5693@wojtek5693Ай бұрын
    • @@wojtek5693 I mean yeah maybe. It has created a hole bunch of issues to deal with. Maybe in the end it will be better. But not having to go on this wild wild ride would also have been quite nice

      @lulzmachineify@lulzmachineifyАй бұрын
  • Funny i still don't see how this replace React router Dom. Worse is nextjs looks more like a mess in a dynamic large scale.

    @muchirajunior9751@muchirajunior9751Ай бұрын
  • Great video, thanks theo ! One thing i never understand, why force this server-first behaviour? Splitted SPA has stil it usage primarily in dashboard websites, where server rendering stuff does not bring much to the table and forces the developers to setup a next server to deploy a dashboard website, not to mention the mismatch errors in highly dynamic pages and forcing on cookie based authentication for SSR to work. (SSR doesn't work with JWT for example) With SPA it could be easily be hosted on a simple http server to serve static files. I understand the benefit of the server model but let me choose when i want Server component, SSR or SPA. ALL I'm saying is that these decisions shouldn't be taken for developers, let them opt in for every page they want. IMO this is one of the primary reasons Remix got the attention it deserved, it filled a gap created with deprecation of CRA. This is the primary reason i think folks at nuxt approached these problems really carefully and delivered the best of both worlds with developers in control, sadly it is not as advertised as other "fancy" things in other communities.

    @Saeid-Za@Saeid-ZaАй бұрын
  • Figuratively, in the last 10 years, all of web dev took a ride to the client and now back to the server. I am not confident though that our tools are now 10 years better than what we had 10 years ago. I think the biggest one that I feel day to day is actually just Tailwind, which is pretty orthogonal to that whole development. And Browsers got a lot better, too.

    @roodood@roodoodАй бұрын
    • As someone newer to learning this, is it more worthwhile to focus on React or to focus on Next for the eventual job search this summer? I know the main difference is client vs server obviously but I see more Next tutorials than React specific ones these days

      @ScottJohnson-cf8fk@ScottJohnson-cf8fk26 күн бұрын
  • WTF are they talking about? This has already been available with Vite without Remix for many months. It's incredibly easy to do with minimal configurations. I don't get what it is they're trying to take credit for, they didn't actually do anything new.

    @destroyonload3444@destroyonload3444Ай бұрын
    • Welcome to the react ecosystem lol I had the same reaction as you

      @hamm8934@hamm8934Ай бұрын
    • xD they making it sounds like revolutionary xD

      @backupmemories897@backupmemories897Ай бұрын
    • Yea nothing new but they did create it in the first place

      @safarl45@safarl45Ай бұрын
    • Mind sharing more details? What exactly was available and where to read this. I'm not really familiar with those things, but now interested.

      @ra-dro@ra-droАй бұрын
    • ​​​@@ra-dro they're talking about Remix the web framework. Check it out because it's genuinely interesting the way they approach web app development within a single file for frontend and backend, and their routing is convention over config.

      @SkandiaAUS@SkandiaAUSАй бұрын
  • I don't think "paid template for react router" is a fair way to talk about Remix, even very early versions

    @JLarky@JLarkyАй бұрын
  • I have a question. In next js app router, what is the best way to set default route example default route of my site should be '/dashboard' instead of '/'

    @karthi290598@karthi290598Ай бұрын
    • Redirect in config or middleware

      @user-ik7rp8qz5g@user-ik7rp8qz5gАй бұрын
    • @@user-ik7rp8qz5g nah, what he's asking for is setting the basePath in the nextjs configs.

      @pyrocentury@pyrocenturyАй бұрын
  • This was super interesting. I would love a breakdown of Rolldown at some point.

    @studiousllama4776@studiousllama4776Ай бұрын
  • 6:38 deserves a screenshot + tweet

    @bigboxSWE@bigboxSWEАй бұрын
  • Are you using Alfred and dash for your hotkeys?

    @woodylucas@woodylucasАй бұрын
  • So what's Next?

    @talhabytheway@talhabythewayАй бұрын
  • Bundler wars is true. It hurt to see so many tools doing the exact same thing. JavaScript devs are wild

    @hannad@hannadАй бұрын
  • react-router has been a dumpster fire for ages. They constantly released new major versions with breaking changes, and by the time you got migrated over they had released a new major version with more breaking changes. I’m glad to see it go.

    @catalystcorp@catalystcorpАй бұрын
  • Men I don’t know why I didn’t stick to Flutter

    @alexandrodisla6285@alexandrodisla6285Ай бұрын
    • Grass is not greener.

      @brandonmansfield6570@brandonmansfield6570Ай бұрын
  • What a great explanation of the bundler landscape. Thanks!

    @finnwillows6031@finnwillows6031Ай бұрын
  • I wish react had a router of their own like these libraries and we didn't need another imports for basic functionality... great news nonetheless

    @cetincetindag@cetincetindagАй бұрын
    • react was at way a way to manipulate the dom, just drop in a project and add events

      @SXsoft99@SXsoft99Ай бұрын
  • Which drawing app is that?

    Ай бұрын
  • Got clickbaited but learnt about JS bundlers so its not so bad

    @neofox2526@neofox2526Ай бұрын
  • Fuck, I just learned it and you telling me it is dead?!?

    @mamurdadkhan9068@mamurdadkhan9068Ай бұрын
    • lol

      @lonelyboy4033@lonelyboy4033Ай бұрын
  • How about Rspack?

    @yhzh755@yhzh755Ай бұрын
  • Man you guys had to manual make webpack configs back in the day? I really came in at the right time

    @neofox2526@neofox2526Ай бұрын
    • Well... speaking of enterprise projects, I had to do that until just about 8 months ago.

      @kevinmueller5376@kevinmueller537622 күн бұрын
  • Is that Vite is already have Remix when you initialize npx create-vite-app? What's gonna be a difference if Remix themselves turn the Vanila Remix to Vite?

    @HikaruAkitsuki@HikaruAkitsukiАй бұрын
  • Damn axiom will be on remix at some point then didn't see it coming

    @igrb@igrbАй бұрын
  • Guys, yes Vite provides its own SSR paradigm, here we're talking about frameworks that have much more than a bundler.

    @Exilum@ExilumАй бұрын
  • I like the look of this whiteboarding app you're using, anyone know what it is?

    @justinbarca1835@justinbarca1835Ай бұрын
    • excalidraw

      @JoeAguado@JoeAguadoКүн бұрын
  • Didn't you make a video a year ago about Tanstack saying it was the end of React Router?

    @GavinusMaximusMaster@GavinusMaximusMasterАй бұрын
  • Thanks Theo - this video is perfect timing for me. I'm just about to embark on starting a new React project for work which is going to be pure SPA (with a C# .NET on the server side). I've been debating between using NextJS and Vite for a while now. Perhaps Remix with its SPA mode along with Vite would be the best option now ?

    @dwhxyz@dwhxyzАй бұрын
    • If you're going to do a traditional spa, vite react app is sufficient

      @everythingisfine9988@everythingisfine9988Ай бұрын
    • React + Vite should do the trick, at this point IMO Blazor is not a bad alternative either

      @CoffeeToCode11@CoffeeToCode11Ай бұрын
  • Not sure how I feel about 10 largest react code bases all using react router, Facebook afaik is not, twitch, reddit yes, what others though?

    @Abdullah-yq7jp@Abdullah-yq7jpАй бұрын
  • I would rather use blazor , at this point js world is so messy that even intermediate developers wouldn't have a clue the nice thing about lazor is that you can use when ever needed both in the frontend and backend (polyglot programming) but still need slightly better DX and community support ! , ( did I mentioned you can warp react components ? )

    @prestigealanazi2993@prestigealanazi2993Ай бұрын
  • I really believe Remix should get more hype from the community.

    Ай бұрын
    • I was hyped... for a few days. Then realized that form-based actions are untyped (unlike what we currently have at work with Zodios), that there's no adequate monorepo example, that docs are very shallow. Not sure if it's worth the hype, at least not with React at the core. SvelteKit and SolidStart look more interesting IMO.

      @IvanKleshnin@IvanKleshninАй бұрын
  • I have never understood the need for routing and state management libraries. Those have always been easy to write by hand and have been a minuscule fraction of my projects. I feel like I'm taking crazy pills.

    @jamesking2439@jamesking2439Ай бұрын
  • Cool! But how about Nuxt? Would love to see Nuxt in this comparison 👍

    @svenst@svenstАй бұрын
    • Nuxt works identical to old next in this, but uses Vite now. Generally speaking, the innovation on the Nuxt side is in the dev tools and features, not the technical implementations

      @t3dotgg@t3dotggАй бұрын
    • ​@@t3dotgg they also made nitro

      @quintencabo@quintencaboАй бұрын
  • Tanstack Router is AMAZING!!!!

    @hamburger--fries@hamburger--friesАй бұрын
    • Maybe. But tanstack table is trash

      @HyuLilium@HyuLiliumАй бұрын
  • honestly this was an amazing video, very informal love Theo

    @AliHassan-iy1eb@AliHassan-iy1ebАй бұрын
    • The information came from tweets and articles he reads out loud. Great content, reading other people's stuff out loud.

      @gownerjones1450@gownerjones1450Ай бұрын
    • lol

      @nuntius1@nuntius1Ай бұрын
    • @@gownerjones1450 who hurt you bro

      @AliHassan-iy1eb@AliHassan-iy1ebАй бұрын
  • The thing I hate about you is the bait titles you put. You literally put "_ is Dead"

    @eikyoutube@eikyoutubeАй бұрын
    • Don't hate the playa, hate the game

      @mariocamspam72@mariocamspam72Ай бұрын
    • @@mariocamspam72 true

      @eikyoutube@eikyoutubeАй бұрын
  • React Router when you use JS and don't care about putting routes path in any const or strict architecture way: Welcome traveller! React Router when you trying use it with TS with strict routing: *Goes brrrrrrrrrr*

    @_Sajgon_@_Sajgon_Ай бұрын
  • I started learning react years ago,had to stop. Not enough prior knowledge + everything breaking. But It's been fun watching😅

    @coffeemakir1977@coffeemakir1977Ай бұрын
  • Wohoo let's break everything again

    @asdqwe4427@asdqwe4427Ай бұрын
  • Another reason i use Angular. From v2 to v17 we always use the included router module unlike react where you can use react router (which isn't even made by the react team), vite, or routers built into next js, gatsby. Its a nightmare, where is the consistency?

    @CoolPupGaming@CoolPupGamingАй бұрын
  • looking cool in this hairstyle bro

    @ratanlambha2602@ratanlambha2602Ай бұрын
  • oop. Post React Conf it seems like it's the other way around 😬

    @jamjamatt8@jamjamatt8Күн бұрын
  • i was just LEARNING react router

    @AnudeepDONDONDONRlol@AnudeepDONDONDONRlolАй бұрын
  • Remix for the RUN!!!

    @blessdarah1256@blessdarah1256Ай бұрын
  • my man invented a new content branch. "pop-web-dev"

    @danilovukovic1972@danilovukovic1972Ай бұрын
  • I would love to see a video on why you think Next.js with app router has a better data loading + mutation story than Remix. Because imo Remix is miles better than what I see in Next.

    @adiswa123@adiswa123Ай бұрын
    • - It's composable That's about it

      @t3dotgg@t3dotggАй бұрын
    • Composabilty my friend.

      @oscarljimenez5717@oscarljimenez5717Ай бұрын
    • Yeah as much as I'm a Remix fan boy, I find data loading being tied to components rather than routes a more intuitive mental model - but I suppose that's because my brain has been so infected by React SPAs and their data loading patterns over the years!

      @ruaidhrilumsden@ruaidhrilumsdenАй бұрын
  • you have uploaded 3 videos already saying react router ended already, that is confusing for beginners and people watching you trying to improve. I tried other options you share and just threw them away for the basic most used react router. Seems like the focus is merely on the tools rather on the products.

    @abdulrahamantalal1319@abdulrahamantalal1319Ай бұрын
  • That Turbopack isnt moving is such a tragedy.

    @JakobRossner-qj1wo@JakobRossner-qj1woАй бұрын
  • Your title says "the end", you description says "finally dead", but then you say that the project might be merging, which means that React Router is very much here to stay. Do you… want it gone for some reason? Has the React community been complaining about its existence? Why did you think it was important to announce this as a fact based on a single thread, and then proceed to not talk about the subject anymore?

    Ай бұрын
    • Views

      @safarl45@safarl45Ай бұрын
    • First you write the clickbait, then you get the views, then you get the clout

      @stoogel@stoogelАй бұрын
  • Funny enough, I actually liked making my Webpack configs. It was awesome to use openly available plugins to optimize my own code! However, I love the way things are going with things like Parcel: obfuscate the build details and get the best optimizations out of the box.

    @justjoshingaround@justjoshingaroundАй бұрын
    • I love Parcel. Not sure how Vite became the standard so quick when Parcel has been doing the right thing for years.

      @ivanfilhoz@ivanfilhozАй бұрын
  • TLDR: Next version of "React Router" may or may not merge/flow into "Remix Router", hence the install package naming might change for the end users (devs), depending on the decision. If you are so panic with your comment, you just don't watch the first 1min of the video. Well, as least you know the news because of the clickbait, better than later panic about why React Router never got updated (if they change to remix router), and asked some random questions in github repo or reddit or twitter or whatever, and blame the maintainers.

    @doc8527@doc8527Ай бұрын
  • make that rolldown vid plzzz!!!

    @AdrianFrimpong@AdrianFrimpongАй бұрын
  • bro i don't get why there is so much shit always changing in the web dev world when like 99% of people use 3 websites 99% of the time they browse. and they fucking browse on their phones!

    @xX_dash_Xx@xX_dash_XxАй бұрын
  • Okay, I am back to farming again

    @i_am_pasindu@i_am_pasinduАй бұрын
  • Remix❤

    @JEsterCW@JEsterCWАй бұрын
    • ❤ Big time!

      @ruaidhrilumsden@ruaidhrilumsdenАй бұрын
  • Finally!

    @alexenax1109@alexenax1109Ай бұрын
  • Why are you awake at 4 am 🤣

    @oliver970@oliver970Ай бұрын
  • Why all the router libs for react suck if you use it as SPA?

    @omri9325@omri9325Ай бұрын
  • Impressive, very nice. Let's see Paul Allen's first comment.

    @BeyondLegendary@BeyondLegendaryАй бұрын
  • This is emotional damage to React Router users.

    @WilliamShrek@WilliamShrekАй бұрын
  • War of bundlers??

    @bhanusharma2363@bhanusharma2363Ай бұрын
  • It's the eeend of react router as we know it.

    @bluecup25@bluecup25Ай бұрын
  • Will check this later but I love to see how Vue is consistent on it's upgrades without having breaking changes. I have the feeling Reacts gets more and more like Angular by all the latest updates that it introduces?

    @gkiokan@gkiokanАй бұрын
    • React itself famously has had almost no breaking changes. Vue 3 had a ton of breaking changes. So what are you talking about?

      @KevinVandyTech@KevinVandyTechАй бұрын
    • @@KevinVandyTech I am talking about all the changes that lately happend to React that devs are complaining about that resolved into rewriting existing code (mostly). Not sure which breaking Changes you mean on Vue 3 but I can tell you it's by far simpler, even you can get into complex syntax like on React, too. But the question is, why would do that freely if you can get the same result with less hassle? Not gonna protect Vue over React or anything, just saying what I noticed from most of the devs out there. But still prefer Vue over React.

      @gkiokan@gkiokanАй бұрын
  • Googles "what's a bundler"

    @user-be3cd4cx3o@user-be3cd4cx3oАй бұрын
  • For react router to become remix companies would have to get off web pack first lmao

    @griffadev@griffadevАй бұрын
  • love ya

    @eran2670@eran2670Ай бұрын
  • JavaScript. I love it.

    @CottidaeSEA@CottidaeSEAАй бұрын
  • Wow, I've seen the video in the minute it came out!

    @werneromling@werneromlingАй бұрын
  • Than god I moved to Laravel.

    @DoctorSoulis@DoctorSoulisАй бұрын
  • i just started a project with react router lmao

    @jesustzinon@jesustzinonАй бұрын
  • I hate all this lol. Client side routing has always been kinda goofy but at least it was simple

    @erikslorenz@erikslorenzАй бұрын
  • If you're not building eCommerce, SPA is the way to go usually. Wonder why Remix team took so long to realize it.

    @adeptiworks@adeptiworksАй бұрын
  • Very smart man 🎉🎉🎉

    @maduemeka6982@maduemeka6982Ай бұрын
  • the end of react youtuber

    @nuntius1@nuntius1Ай бұрын
  • Finally

    @BugMug09@BugMug09Ай бұрын
  • Web dev is a hot mess! It all needs to be razed to the ground and started anew. HTML, CSS and JavaScript needs to be dumped. Replaced with what I don’t know maybe something grounded in web assembly but this video is proof to me that it all needs a major overhaul. Otherwise this churn is just going to get worse.

    @DevLife717@DevLife717Ай бұрын
  • no react router better than react router. it's time to move on

    @chhornponleu8191@chhornponleu8191Ай бұрын
  • Super useful breakdown on bundlers chaos ❤

    @zaripych@zaripychАй бұрын
  • Im 12th 😂

    @sunnyheheheh9401@sunnyheheheh9401Ай бұрын
  • ay the clickbaits are strong

    @vorche_@vorche_Ай бұрын
  • as such

    @DanKreiger@DanKreigerАй бұрын
  • This is stupid I moved on the VUE

    @jwoods9659@jwoods9659Ай бұрын
  • For those curious, there are 1.4k likes and 600 dislikes as of right now. Lmao

    @tabletuser123@tabletuser123Ай бұрын
  • 37th

    @KWerder92@KWerder92Ай бұрын
  • React router has been going in the wrong direction anyway. They introduced all these data fetching hooks and try to do way too much. It should've sticked to just being a router. But then again react router is probably the most amateuristic/incompetent library that somehow is still popular. The amount of complete rewrites over the year is staggering.

    @SebaKerckhof@SebaKerckhofАй бұрын
  • clickbait = 100,000 dislikes (youtube can hide)

    @rsrini7@rsrini7Ай бұрын
  • First 😁

    @debanjantewary4454@debanjantewary4454Ай бұрын
  • ugh, what a clickbait

    @igorsantos07@igorsantos07Ай бұрын
  • Yes, webpack sucks and doesn't suck at the same time. Because I remember all those years ago that it did the job and am grateful for it even if it's not the best anymore.

    @georgiyanev7822@georgiyanev7822Ай бұрын
  • soydevs

    @domdirector@domdirectorАй бұрын
  • First

    @fredzugs@fredzugsАй бұрын
  • first

    @outtrigger@outtriggerАй бұрын
  • This video sells HTMX so bad 😁

    @turculaurentiu91@turculaurentiu91Ай бұрын
  • I want to be first comment so bad (Don't delete this)

    @emmanuelchucks@emmanuelchucksАй бұрын
    • Sadly you are 4th

      @t3dotgg@t3dotggАй бұрын
    • I shall be 7th@@t3dotgg

      @tuminspace@tuminspaceАй бұрын
    • @@t3dotgg Damn it

      @emmanuelchucks@emmanuelchucksАй бұрын
    • You are first now!

      @mattiarasulo9934@mattiarasulo9934Ай бұрын
    • @@t3dotggwhy are you so dedicated to slandering DarkViperAU's name? you're clearly being petty about the fact that a company didn't want you to post your "reaction" to their video that they worked so hard on! Yet you feel that the company is in the wrong and that you have all the power in the world to do whatever you want, even if it's with someone else's content. I could imagine if your wife told you to turn left, you'd probably turn right instead since you think you're just so powerful and you're always correct no matter the situation. Get a grip and maybe go buy some common sense bud!

      @lumberjack5880@lumberjack5880Ай бұрын
  • Funny how a washed up KZheadr can have a better grade then you on Social Blade. I am also offended that Social Blade thinks he can have 16.5M views in the last month while you, God himself, the best creator ever, said he only got 30k views on his videos.

    @hanse81@hanse81Ай бұрын
KZhead