Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

react-router

Package Overview
Dependencies
1
Maintainers
3
Versions
207
Issues
File Explorer

Advanced tools

react-router

Declarative routing for React

    6.4.3latest

Version published
Maintainers
3
Weekly downloads
8,727,410
decreased by-7.36%

Weekly downloads

Changelog

Source

v6.4.3

What's Changed

  • Generate correct <a href> values when using createHashRouter (#9409)
  • Better handle encoding/matching with special characters in URLs and route paths (#9477, #9496)
  • Generate correct formAction pathnames when an index route also has a path (#9486)
  • Respect relative=path prop on NavLink (#9453)
  • Fix NavLink behavior for root urls (#9497)
  • useRoutes should be able to return null when passing locationArg (#9485)
  • Fix initialEntries type in createMemoryRouter (#9498)
  • Support basename and relative routing in loader/action redirects (#9447)
  • Ignore pathless layout routes when looking for proper submission action function (#9455)
  • Add UMD build for @remix-run/router (#9446)
  • Fix createURL in local file execution in Firefox (#9464)

New Contributors

  • @danielberndt made their first contribution in #9485
  • @AchThomas made their first contribution in #9464
  • @manzano78 made their first contribution in #9451

Full Changelog: https://github.com/remix-run/react-router/compare/[email protected]@6.4.3

Readme

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

FAQs

What is react-router?

Declarative routing for React

Is react-router popular?

The npm package react-router receives a total of 8,269,418 weekly downloads. As such, react-router popularity was classified as popular.

Is react-router well maintained?

We found that react-router demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 3 open source maintainers collaborating on the project.

Last updated on 01 Nov 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc