remix-run/react-router
View on GitHub ↗ ★ 56,631 TypeScript
Declarative routing for React
59 mentions on Hacker News by 52 people: 10 stories, 49 comments · first 2014-06-21 · latest 2026-04-08
20082026
-
…not quite right :) React Router, which belongs to Remix, which was acquired by Shopify, is here: https://github.com/remix-run/react-router Tanstack Router is an entirely new router.
comment by tacker2000 · 2026-04-08 · in We moved Railway's frontend off Next.js. Builds went from 10+ mins to under 2 -
…know you can just read rfc's right? there is a reason they update the thing, because people use it. https://github.com/remix-run/react-router/discussions/catego...
comment by graphememes · 2025-03-21 · in The Frontend Treadmill -
Tanner never worked on react-router: https://github.com/remix-run/react-router/commits/main/?auth...
comment by ggregoire · 2024-12-03 · in Dependency management fatigue, or why I ditched React for Go+HTMX+Templ -
…list of full-pathed routes that are type checked, while v6's child routes don't support full-paths. https://github.com/remix-run/react-router/discussions/10288
comment by c-hendricks · 2024-05-16 · in Merging Remix and React Router -
…be purely static but still use a router. In the React world, react-router is (was) pretty popular: https://github.com/remix-run/react-router That's a library that works exactly that way, relying on every route being passed to the JS bundle…
comment by __jonas · 2024-03-25 · in Show HN: Nano-web – a low latency one binary webserver designed for serving SPAs -
Yep, here is the React Router team getting it wrong(among other things): https://github.com/remix-run/react-router/issues/7634
comment by Rapzid · 2023-03-15 · in Were React hooks a mistake? -
…such as ensuring the click is happening without modifier keys. This is how react-router handles it: https://github.com/remix-run/react-router/blob/main/packages...
comment by ericwood · 2022-12-15 · in Best ecommerce UX practices from mcmaster.com -
…also mix in connected-react-router [1]. This lets you do navigation w/ an imperative API [2]. [0] https://github.com/ReactTraining/react-router/tree/master/pa... [1] https://github.com/supasate/connected-react-router [2]…
comment by jaquers · 2019-11-15 · in Build Your Own React -
…didn't bother to write either tests or docs I can still make use of foreign code just fine... [1]: https://github.com/ReactTraining/react-router/blob/master/pa...
comment by nnq · 2019-04-13 · in Why I Switched from Visual Studio Code to JetBrains WebStorm -
> there's no relative routes https://github.com/ReactTraining/react-router/issues/2172 I've been managing "relative" routes by just using `match.path` and `match.url` from the previous route. Works fine. function Parent(props) { return (…
comment by sorahn · 2019-03-21 · in React Router v5 -
…The solution to the external links issue is a one-liner. > there's no way to refresh the page https://github.com/ReactTraining/react-router/issues/1982 ("that's your responsibility, not ours") That is your responsibility. Why do you need…
comment by lopatin · 2019-03-21 · in React Router v5 -
…have arbitrary restrictions that made my life tougher. Some examples: * there's no relative routes https://github.com/ReactTraining/react-router/issues/2172 * there's no way to refresh the page https://github.com/ReactTraining/react-router/…
comment by johnfn · 2019-03-21 · in React Router v5 -
…the React Router codebase. The components are pretty well written and somewhat easy to understand: https://github.com/ReactTraining/react-router/blob/master/pa...
comment by _hardwaregeek · 2018-05-09 · in My struggle to learn React -
…props also require way less complex type definitions if you're using flow or typescript. [0]: https://github.com/ReactTraining/react-router/blob/master/pa...
comment by m0meni · 2018-03-29 · in React v16.3.0: New lifecycles and context API -
…It'll take longer to get to an API that feels "perfect," but it makes for a stronger culture. [0] https://github.com/ReactTraining/react-router/blob/master/pa...
comment by btown · 2018-03-19 · in An attempt to upgrade to Webpack 4 -
…one is React Router's withRouter HOC [0]. I've used this a ton and it works extremely well. [0] https://github.com/ReactTraining/react-router/blob/master/pa...
comment by leetbulb · 2017-11-04 · in Show HN: React patterns, techniques, tips and tricks -
…author web components that snap--like Lego bricks--into whatever environment a developer wants? [0] https://github.com/ReactTraining/react-router/issues/4410
comment by ralmidani · 2017-08-20 · in Marko – An isomorphic UI framework similar to Vue -
…on that code. 4.0 is the future, but we won't leave you hanging if you want to stick with 2.x/3.x. https://github.com/ReactTraining/react-router/releases/tag/v... Previously discussed here: https://news.ycombinator.com/item?id=12511419
comment by aocvr · 2017-06-20 · in Webpack 3: Official Release -
…any of those versions or even looked at the breaking changes. Here's what actually happened: v1: https://github.com/ReactTraining/react-router/blob/v3/upgrad... v2: https://github.com/ReactTraining/react-router/blob/v3/upgrad... v3 mostly…
comment by pluma · 2017-05-28 · in Switching From React To Vue.js -
…so specific in its applicability that I haven't bothered turning it into a proper package yet. [0] https://github.com/ReactTraining/react-router [1] https://github.com/pieroxy/lz-string
comment by vanderZwan · 2017-05-02 · in Show HN: Shortern URIs using Huffman Coding, not a database -
…[5]: https://github.com/aksonov/react-native-router-flux [6]: https://github.com/ReactTraining/react-router [7]: https://js.coach/?search=navigation
comment by jwarren · 2017-03-14 · in React Native Navigation Library -
The code that does this for server-rendered js is in https://github.com/ReactTraining/react-router/blob/master/mo... . There's code to convert URL patterns to regular expressions in https://github.com/ReactTraining/react-router/blob/master/…
comment by matt4077 · 2017-02-16 · in Go 1.8 Release Notes -
The markdown doc is here: https://github.com/ReactTraining/react-router/tree/v4/packag...
comment by yasserkaddour · 2017-01-30 · in React Router: Declarative Routing for React -
Link to v4 branch: https://github.com/ReactTraining/react-router/tree/v4 ^ helped me understand what changes are coming.
comment by DGCA · 2017-01-30 · in React Router: Declarative Routing for React -
…about this library I was planning on using the latest version of react-router to do this. See: https://github.com/ReactTraining/react-router https://react-router.now.sh/MemoryRouter https://medium.com/@jschloer/react-router-v4-with-react-na…
comment by htormey · 2017-01-26 · in Introducing React Navigation for React Native -
Anyone familiar with how this compares to react-router? I hear they are adding react native support. https://github.com/ReactTraining/react-router
comment by htormey · 2017-01-26 · in Introducing React Navigation for React Native -
…a single child. This is improved a little bit in git, where we do a React.Children.only check: https://github.com/ReactTraining/react-router/commit/5a74d46...
comment by timdorr · 2016-09-16 · in React Router v4 FAQ -
In fact, 3.0 is still being developed. I just pushed out beta.1: https://github.com/ReactTraining/react-router/releases/tag/v...
comment by timdorr · 2016-09-16 · in React Router v4 FAQ -
…that code. 4.0 is the future, but we won't leave you hanging if you want to stick with 2.x/3.x. [0] https://github.com/ReactTraining/react-router/releases/tag/v...
comment by Klathmon · 2016-09-16 · in React Router v4 FAQ -
…confused by this. I found this GitHub issue [1] when searching for a withRouter HOC replacement. 1. https://github.com/ReactTraining/react-router/issues/3847
comment by marshallford · 2016-09-16 · in React Router v4 FAQ -
…that describes the updating patterns of the URL isn't so easy to find... This might help though: https://github.com/rackt/react-router/issues/266 (Issue from someone trying to change URL without triggering re-route, might help with saving…
comment by hardwaresofton · 2016-01-20 · in Show HN: Teevox – Twitch Multistream Player,made in Static HTML, React, Firebase -
We normally hide this behind the `match` API: https://github.com/rackt/react-router/blob/master/docs/guide... Of course, that API is quite opaque and doesn't give you a history object you work with. It's really just a boilerplate reducer…
comment by timdorr · 2016-01-01 · in React Router 2.0.0 -
…that's our mistake. There was a good reason for this, as it caused bugs with React.Children.map: https://github.com/rackt/react-router/issues/1968 The 1.0 release process was super-rocky and we're looking to avoid that in the future. For…
comment by timdorr · 2016-01-01 · in React Router 2.0.0 -
…karma config using the karma-mocha plugin. Then, one line in your karma config and you're done. https://github.com/rackt/react-router/blob/53623216560e34fbe... As for file watching (also part of the OP) your bundler should be doing that.…
comment by mjackson · 2015-11-24 · in From Karma to Mocha, with a taste of jsdom -
…as an alternative.[2] [1] http://facebook.github.io/react/blog/2015/01/27/react-v0.13.... [2] https://github.com/rackt/react-router/issues/1173
comment by tranver · 2015-07-08 · in React on ES6+ -
…their mind "until ES6 classes have better answers to replace what mixins do (like decorators).": https://github.com/rackt/react-router/blob/master/UPGRADE_GU...
comment by avital · 2015-07-02 · in Integrating React with Meteor -
…all of our JS with babel as well. I'd be happy to answer any more specific questions as well. [0]: https://github.com/rackt/react-router [1]: https://github.com/yahoo/fluxible
comment by biscarch · 2015-06-21 · in Ask HN: ReactJS – Do you use it? Do you like it? -
…material ui and their work). I've been successfully using it in a couple of small apps [3, 4]. [1] https://github.com/rackt/react-router [2] https://github.com/callemall/material-ui [3] http://github.com/ecesena/oscars2015 [4]…
comment by ecesena · 2015-02-23 · in React Tips and Best Practices -
…to build the abstractions that do pretty much the same thing that support existing REST APIs. [1] https://github.com/rackt/react-router/blob/master/examples/a... [2] https://github.com/rackt/react-router/wiki/Announcements [3]…
comment by _wo6a · 2015-02-01 · in Relay FAQ: Facebook's Data-fetching Framework for React -
react-router, I assume. See more on nesting: https://github.com/rackt/react-router/blob/master/docs/guide...
comment by danabramov · 2015-01-22 · in Riot – A React-like, 2.5K user interface library -
…as well. Mithril[4] also looks React-ish and interesting. 1: https://github.com/spoike/refluxjs 2: https://github.com/rackt/react-router 3: https://docs.google.com/presentation/d/1afMLTCpRxhJpurQ97VBH... 4: http://lhorie.github.io/mithril/
comment by o_____________o · 2014-12-01 · in Ask HN: What is the best alternative to Angular JavaScript framework? -
…looks like they may have recently solved the issue with async rendering on the server (4 days ago): https://github.com/rackt/react-router/wiki/Announcements#wha... One of the exciting things about React, and Node.js more generally, is how…
comment by Todd · 2014-11-26 · in Yahoo Mail moving to React -
…and react-router seems like the only other game in town when it comes to routing in React. [0] https://github.com/rackt/react-router/issues/57#issuecomment... P.S. I don't know that much about node and fibers to understand why fibers is…
comment by xtrumanx · 2014-11-26 · in Yahoo Mail moving to React -
…you may understand our opinion that "application state" is precisely which views to render. https://github.com/rackt/react-router/blob/master/docs/guide... We're almost done with serializing the application data as well. Both pieces are…
comment by ryanflorence · 2014-09-04 · in React Components -
Maybe take a look at the source code for the router component you're so offended by. https://github.com/rackt/react-router/blob/master/modules/co... It doesn't generate any markup itself, but instead renders the component bound to the…
comment by larrymyers · 2014-09-04 · in React Components -
…focus the React component ecosystem on what it should be about: UI widgets.) [1] Random example: https://github.com/rackt/react-router#whats-it-look-like - seriously, what were they thinking?
comment by skrebbel · 2014-09-04 · in React Components -
…a prescribed model in Angular aside from $scope either. [0] - http://facebook.github.io/flux/ [1] - https://github.com/rackt/react-router
comment by compedit · 2014-08-21 · in Choosing the Right JavaScript Framework -
…ever used Ember's router and liked it, I'd suggest the react-nested-router[0]. So easy to use [0] - https://github.com/rpflorence/react-nested-router
comment by compedit · 2014-07-18 · in React v0.11 -
No, this is most likely an artifact of react-nested-router ( https://github.com/rpflorence/react-nested-router ) not currently preserving the scroll position. Definitely not a constraint imposed by React. Edit: Or this may be due to the…
comment by spicyj · 2014-07-18 · in React v0.11