React Router: Declarative routing for React applications
Component-based navigation and URL management for React.
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.
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.
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.
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>
);
}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.
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.
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
Related Repositories
Discover similar tools and frameworks used by developers
bootstrap
Sass-based component library with responsive grid system.
RemixIcon
3100+ neutral-style SVG icons in outlined and filled variants.
ui
Copy-paste React components built on Radix and Tailwind.
fonts
TrueType font binaries and metadata organized by license.
query
Declarative server-state caching with automatic background synchronization.