New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

react-router

Package Overview
Dependencies
Maintainers
2
Versions
1186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router

Declarative routing for React

Source
npmnpm
Version
6.30.5
Version published
Weekly downloads
38M
-0.21%
Maintainers
2
Weekly downloads
 
Created
Source

React Router

The react-router package is the heart of React Router and provides all the core functionality for both react-router-dom and react-router-native.

If you're using React Router, you should never import anything directly from the react-router package, but you should have everything you need in either react-router-dom or react-router-native. Both of those packages re-export everything from react-router.

If you'd like to extend React Router and you know what you're doing, you should add react-router as a peer dependency, not a regular dependency in your package.

Keywords

react

FAQs

Package last updated on 18 Aug 2026

Related posts