Hacker GitHub

← All repos

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

Mentions per year 59 mentions · busiest year 2017 (12)
20082026
  1. …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.
  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
  3. Tanner never worked on react-router: https://github.com/remix-run/react-router/commits/main/?auth...
  4. …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
  5. …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…
  6. 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?
  7. …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...
  8. …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
  9. …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...
  10. > 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
  11. …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
  12. …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
  13. …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
  14. …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...
  15. …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
  16. …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...
  17. …author web components that snap--like Lego bricks--into whatever environment a developer wants? [0] https://github.com/ReactTraining/react-router/issues/4410
  18. …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
  19. …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
  20. …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
  21. …[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
  22. 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
  23. 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
  24. Link to v4 branch: https://github.com/ReactTraining/react-router/tree/v4 ^ helped me understand what changes are coming.
  25. …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…
  26. Anyone familiar with how this compares to react-router? I hear they are adding react native support. https://github.com/ReactTraining/react-router
  27. …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
  28. 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
  29. …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
  30. …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
  31. …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…
  32. 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
  33. …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
  34. …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
  35. …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+
  36. …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
  37. …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
  38. …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
  39. …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]…
  40. react-router, I assume. See more on nesting: https://github.com/rackt/react-router/blob/master/docs/guide...
  41. …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/
  42. …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
  43. …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
  44. …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
  45. 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
  46. …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
  47. …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
  48. …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
  49. 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