stackpicks.dev
Back to gallery
remix-run/react-router preview
remix-run
remix-run/

react-router

Declarative routing for React

Stars
56.4k
Forks
10.9k
Watchers
56.4k
Open issues
137
TypeScriptMIT main Updated 1 minute ago~13 stars/day lifetime
Editor's take

The default React router. ~53k stars. v7 merged Remix into React Router so it now also does data loading and form actions. Best choice for React SPAs and SSR apps not on Next.js.

Use this if

You are building a React SPA or non-Next.js SSR app — this is the default.

Skip if

You are on Next.js or TanStack Start — they have their own routers.

Routing
Quick install
# Install via npm / pnpm / bun:
pnpm add react-router
# or
npm install react-router

Inferred from TypeScript · always double-check against the official README below.

README — rendered from remix-run/react-router
Live data via GitHub REST API · Cached 30 min · Created 17 May 2014