TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Merging Remix and React Router

107 pointsby 0xedbabout 1 year ago

17 comments

lazlo_kovacsabout 1 year ago
I never understood the appeal of React Router, the simplest library to get rewritten 5+ times, each time forcing their users to learn a new way of doing routing. It never worked that well either in my experience. The authors seemed addicted to churn and complexity.<p>I do enjoy Remix though. It works well and the various stacks help you get started pretty quickly. So why take the framework that&#x27;s well respected and loved, and combine it with the library that&#x27;s known for its churn? That seems like a lose-lose. You create yet another change for people still on React Router and lose the Remix brand.<p>Did the Vercel people manage to execute a psyop on Remix? This doesn&#x27;t feel like the move.
评论 #40374009 未加载
评论 #40373907 未加载
评论 #40375400 未加载
评论 #40374102 未加载
评论 #40373984 未加载
评论 #40375437 未加载
评论 #40380752 未加载
评论 #40375361 未加载
Cu3PO42about 1 year ago
As someone who has used react-router before and is currently evaluating Remix for a different project, I didn&#x27;t realize just how thin that layer has become. I suppose there&#x27;s a ton of features in react-router I never touched.<p>From a marketing perspective, I&#x27;m not sure if it&#x27;s genius or insane. It&#x27;s going to get a lot of people on the platform currently called Remix, but I also feel like Remix has built a strong brand and not having a project that uses it explicitly feels ... suboptimal.
评论 #40373683 未加载
peter_l_downsabout 1 year ago
Fwiw I recently started using wouter (<a href="https:&#x2F;&#x2F;github.com&#x2F;molefrog&#x2F;wouter">https:&#x2F;&#x2F;github.com&#x2F;molefrog&#x2F;wouter</a>) and it works great for me, I&#x27;m not sure why react-router is so big and has so many other features. I took a look at it but didn&#x27;t understand it and wouter seems to be working fine for my simple needs (go to different pages, link between them, parse params&#x2F;)
评论 #40374800 未加载
评论 #40391160 未加载
bilalqabout 1 year ago
I think this is a good direction for Remix and makes me more inclined to start using it in the future. There&#x27;ll no doubt be some people left confused by the branding changes, but in the long run, it&#x27;s probably a good move.<p>I used to use react-router many years ago, but I eventually got fed up with the breaking changes and switched to wouter for most projects. It&#x27;s much simpler and I rarely have to think about it.<p>Remix was interesting. but since I also had native mobile apps using the same backend as my webapps, I just wasn&#x27;t interested in running a whole other backend in between the webapp and my API. SSG and some SSR capabilities easily deployed to a serverless runtime would be nice, but I&#x27;m completely uninterested in RSC or a server runtime for my webapps at all. When Remix SPA mode was announced, I was intrigued, but couldn&#x27;t really see what Remix did for me beyond what I already had setup with Vite + Wouter.
a_random_canuckabout 1 year ago
I feel like this announcement could use a more clear summary of the key point at the top.<p>It sounds like Remix will be discontinued and anyone using it will need to upgrade to React Router? Is that not going to be super super confusing?
评论 #40374917 未加载
wokwokwokabout 1 year ago
&gt; Remix is specifically designed to run in any JavaScript environment so that you own your stack. It is expected many —if not most— production apps will have their own server.<p>Mmm.<p>I&#x27;m know that technically remix supports static builds (1), but it feels like a bait and switch to turn a client side library into a server side framework.<p>Am I cynical in think perhaps there were two projects and one of them was more popular than the other (like, 2x more popular say...), so maybe if we take the unpopular package <i>merge it to the popular one</i> people will not notice and we can just pretend we only have one popular package?<p>Maybe we should just merge all the packages in npm into one package called &#x27;all&#x27;. That would be soooo popular, great victory!<p>I&#x27;m joking; but taking this to the extreme makes the point; this is unabashed and unwanted bloat for people who just wanted react router; if people wanted remix, they would use remix. If you don&#x27;t want to maintain two packages, don&#x27;t; but this is a bit :|<p>&gt; and now Remix and React Router are basically the same thing<p>Mm. That&#x27;s not how I would describe the difference between a <i>server side framework</i> and a <i>client side one</i>.<p>[1] - <a href="https:&#x2F;&#x2F;remix.run&#x2F;docs&#x2F;en&#x2F;main&#x2F;guides&#x2F;spa-mode" rel="nofollow">https:&#x2F;&#x2F;remix.run&#x2F;docs&#x2F;en&#x2F;main&#x2F;guides&#x2F;spa-mode</a>
评论 #40377253 未加载
评论 #40388422 未加载
c-hendricksabout 1 year ago
We still can&#x27;t upgrade past v5 because our apps do &quot;unconventional&quot; things like ... have a stable list of full-pathed routes that are type checked, while v6&#x27;s child routes don&#x27;t support full-paths.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;remix-run&#x2F;react-router&#x2F;discussions&#x2F;10288">https:&#x2F;&#x2F;github.com&#x2F;remix-run&#x2F;react-router&#x2F;discussions&#x2F;10288</a>
franciscopabout 1 year ago
If you want a tiny (90+% smaller) React Router alternative that is stable and works nicely with hooks, while having a similar syntax, please try my own Crossroad:<p><a href="https:&#x2F;&#x2F;crossroad.page&#x2F;" rel="nofollow">https:&#x2F;&#x2F;crossroad.page&#x2F;</a>
fish55about 1 year ago
If you&#x27;ve already changed your build system to Vite (a breaking change to any app started before Vite), and opted in to all current &quot;future flags&quot; (breaking changes), and multiple forthcoming future flags before 7.0, then you will have no breaking changes. And let&#x27;s not forget its history, including the previous merge with Remix. The only lib moving even faster is Next. Both are highly focused on PR at the expense of accuracy and good faith.
评论 #40374631 未加载
randomdev3about 1 year ago
While Remix seems a bit more reasonable than some other js frameworks, they all share the same problem: fundamental architecture.<p>What&#x27;s even weirder is that they could copy the structure from dozens of other frameworks, some of which are nearly 20 years old now, which have solved pretty much every possible problem already.<p>But no, just throw views,data, io, auth checks etc. everywhere and hope it builds.
评论 #40376452 未加载
PaulHouleabout 1 year ago
It’s funny because I dropped in on their Discord today for help debugging an app and there was a lively discussion I joined in to get their attention.<p>Looking at it closely I think the latest version of the react-router is better than previous ones, I upgraded the particular app I was working on because it is busted anyway and not very big but I can think of two or three other apps using RR I maintain that I am not going to upgrade any time soon, particularly some of those use class based components which won’t do the best with the current hook API anyway.<p>I see the appeal of the matching client-server environment it is a dream the web industry has been pursuing since 1998 or so but we already have a server and don’t need a new one.
clivestaplesabout 1 year ago
My guess is that Remix is not getting the traction they expect and want to leverage React Router&#x27;s installed base. I often see Next.js in job opportunities but rarely see Remix. Ryan&#x27;s announcement demo was good.
jakubmazanecabout 1 year ago
Remix is a great framework and I recommended it over Next.js. Also, pay no attention to all the haters here, it&#x27;s just the usual anti-React HN mindset.
CSSerabout 1 year ago
Cool to see this going smoothly. The only thing I’m scratching my head about is “RSC (soon)”. That’s a big question mark that I would’ve liked to see more info on in this announcement. Things like “use client” and “use server” are have implications for actions and loaders.
gardenhedgeabout 1 year ago
So is React Router a framework? Confusing.
pier25about 1 year ago
Didn&#x27;t Shopify buy Remix?
评论 #40375472 未加载
评论 #40376239 未加载
0xblinqabout 1 year ago
Yet another mess, once again.<p>All of this just so that they can brag that their framework has more stars&#x2F;downloads than Next.js, because there&#x27;s no other reason to do this than to &quot;show&quot; who&#x27;s more popular.<p>And while it&#x27;s true react-router has a shitload of downloads, most of those downloads are for really old versions, because people can&#x27;t update due to all the constant rewrites and changes of APIs. I&#x27;ve seen this at 3 companies already, nobody is using the latest versions.<p>NPM should show download metrics by version (as packagist does for PHP packages). I&#x27;m convinced this will prove it.<p>But hey, this works. Now they have more downloads than Next so let&#x27;s use this instead.<p>(BTW, Remix was still a better option than Next in my opinion, but that&#x27;s a super low bar)
评论 #40377423 未加载