Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

react-router

Package Overview
Dependencies
Maintainers
3
Versions
1021
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.10.0
Version published
Weekly downloads
18M
1.75%
Maintainers
3
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 29 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts