Navigate:
All Reposreact-router
~$REACTR0.0%

React Router: Declarative routing for React applications

Component-based navigation and URL management for React.

LIVE RANKINGS • 06:52 AM • STEADY
OVERALL
#220
32
FRONTEND
#24
8
30 DAY RANKING TREND
ovr#220
·Front#24
STARS
56.1K
FORKS
10.8K
DOWNLOADS
18.5M
7D STARS
+10
7D FORKS
+4
See Repo:
Share:

Learn more about react-router

React Router is a routing library for React that handles navigation and URL management in single-page applications. It uses a component-based approach where routes are declared as part of the component tree, allowing developers to define navigation structure alongside UI components. The library supports multiple usage modes: as a full framework with server-side capabilities or as a minimal library integrated into existing architectures. It provides packages for different deployment environments including Node.js, Cloudflare Workers, and filesystem-based routing.


1

Dual Integration Modes

Operates as either a full-featured framework with server integration or a minimal library for custom architectures. Developers choose the integration level that matches their project requirements without switching tools.

2

Multi-Runtime Deployment

Separate packages target Node.js servers, Cloudflare Workers, and filesystem-based routing. The same routing logic deploys across different hosting environments without code changes.

3

Version Migration Paths

Documented upgrade guides support transitions from React Router v6 and Remix. Maintains compatibility across major versions to reduce migration effort for existing projects.


import { BrowserRouter, Routes, Route } from 'react-router';
import Home from './Home';
import About from './About';

function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route path="/" element={<Home />} />
        <Route path="/about" element={<About />} />
      </Routes>
    </BrowserRouter>
  );
}

v7.9.5

Release notes do not specify changes; changelog link provided but content not included in release text.

  • Review the upstream changelog at the provided GitHub URL to identify any breaking changes or requirements.
  • No actionable details are available in the release notes themselves; treat as a potential patch release.
v7.9.4

Release notes redirect to changelog; no details provided in this release text.

  • Consult the official changelog at the provided GitHub URL for actual patch notes and fixes.
  • Release notes do not specify breaking changes, requirements, or migration steps.
v7.9.3

Release notes redirect to changelog; no details provided in this release text.

  • Consult the official changelog at the provided GitHub URL for actual patch notes and fixes.
  • Release notes do not specify breaking changes, requirements, or migration steps.

See how people are using react-router

Loading tweets...


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers