React Router
Declarative routing library for building single-page React applications.
Web frameworks npm MIT
Used in agent projects
972
7.7% of 12,697 public repos built with AI coding agents
Rank in web frameworks
#4 of 26
by use in those projects
Downloads
44.8M
npm, last 7 days, react-router-dom
GitHub stars
56.6K
last push Oct 9, 2026
How React Router is used
React Router is a dependency in 972 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (7.7%), #4 of 26 in web frameworks. The most used alternative there is React. Projects that use it most often also use Vite (79.9%), React (96.8%), Framer Motion (44.8%). It is more common in projects set up for Roo Code (10.6%) than for OpenAI Codex (3.1%).
Often used with React Router
| Vite | 79.9% of React Router projects · 3.5× more than average |
|---|---|
| React | 96.8% of React Router projects · 2.2× more than average |
| Framer Motion | 44.8% of React Router projects · 3.3× more than average |
| Tailwind CSS | 70.9% of React Router projects · 2.0× more than average |
| React Three Fiber | 49.0% of React Router projects · 2.6× more than average |
| Three.js | 46.8% of React Router projects · 2.6× more than average |
| ESLint | 65.5% of React Router projects · 1.7× more than average |
| Lucide React | 44.9% of React Router projects · 2.3× more than average |
By coding agent
| Cursor | 6.9% of projects set up for it |
|---|---|
| Claude Code | 4.4% of projects set up for it |
| GitHub Copilot | 3.4% of projects set up for it |
| Devin Desktop | 9.1% of projects set up for it |
| OpenAI Codex | 3.1% of projects set up for it |
| Gemini CLI | 3.2% of projects set up for it |
| Kiro | 8.9% of projects set up for it |
| Roo Code | 10.6% of projects set up for it |
Share of public repos configured for each agent that list React Router as a dependency.
Install
| Package | npm install react-router-dom |
|---|---|
| Main stacks | TypeScript / JavaScript (898), Next.js (34), Python (29), Rust (5) |
| Example projects | thepower/PowerDapp, 1600822305/AetherLink, storybookjs/mealdrop, hzrd149/nostrudel, whatisjery/react-fluid-distortion |
Alternatives to React Router
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| React npm JavaScript library for building interactive user interfaces with components. |
5,510 (43.4%) | 186M | 251K | MIT |
| Next.js npm React framework for production with server-side rendering and static generation. |
2,861 (22.5%) | 66.2M | 143K | MIT |
| next-themes npm Abstraction for managing themes (dark/light mode) in Next.js apps. |
1,116 (8.8%) | 26.9M | 6,333 | MIT |
| Vue npm Progressive JavaScript framework for building interactive user interfaces. |
210 (1.7%) | 17.1M | 54.6K | MIT |
| Astro npm Modern static site builder with partial hydration and zero JavaScript by default. |
133 (1.0%) | 7.1M | 63.1K | MIT |
| React Native Web npm React Native APIs and components for web allowing code sharing between web and mobile. |
121 (1.0%) | 7.2M | 22.1K | MIT |
| Angular npm Full-featured web framework with TypeScript, dependency injection and RxJS. |
104 (0.8%) | 5.9M | 101K | MIT |
| Svelte npm Compiler-based frontend framework for building reactive web interfaces with less boilerplate. |
102 (0.8%) | 6.5M | 88.4K | MIT |