JSPM

react-router

6.26.2-pre.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 18742537
  • Score
    100M100P100Q218158F
  • License MIT

Declarative routing for React

Package Exports

  • react-router
  • react-router/dist/index.js
  • react-router/dist/main.js
  • react-router/package
  • react-router/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-router) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.