gitmyhub

react-router

TypeScript ★ 56k updated 2d ago

Declarative routing for React

A routing library for React apps that maps URLs to components, working as either a full framework or a lightweight plugin.

ReactTypeScriptJavaScriptsetup: easycomplexity 2/5

React Router is a library for handling navigation and URL routing inside React applications. Routing means deciding which page or component to show based on the URL in the browser — for example, showing a profile page when someone visits /profile and a home page at /.

The README describes it as a "multi-strategy router," meaning it can be used either as a full React framework that takes over the whole application structure, or as a minimal library that plugs into your own setup. It supports React 18 and React 19. The README does not go into further detail about specific features or configuration beyond listing its component packages.

Where it fits