Packages

react-router

8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed

Your version

6.4.0

13 Sep 2022Where it was published

6.30.6 is the newest release of 6.x.

In short

1 fixed6 changed1 internal

Security

3 advisories affect 6.4.0; 7.18.0 fixes them

Release note

The section about react-router of a note shared by several packages.

Whoa this is a big one! 6.4.0 brings all the data loading and mutation APIs over from Remix. Here's a quick high level overview, but it's recommended you go check out the docs, especially the feature overview and the tutorial.

New APIs

  • Create your router with createMemoryRouter

  • Render your router with <RouterProvider>

  • Load data with a Route loader and mutate with a Route action

  • Handle errors with Route errorElement

  • Defer non-critical data with defer and Await

Bug Fixes

  • Path resolution is now trailing slash agnostic

  • useLocation returns the scoped location inside a <Routes location> component

Updated Dependencies

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.