Skip to content

ds3783/react-router-can-pass-props

 
 

Repository files navigation

react-router

React Router can Pass Properties to Route component(s)

Declarative routing for React

Declaration

  1. The original react router repository is here
  2. This fork only be used to resolve the ulgy issue , which is the <Route> do not pass props to its component(s) or children.
  3. It took only less than 3 lines of code to resolve the ugly issue, rather than modify JSX code to go around.

Docs

View the docs here

Migrating from 2.x/3.x?

3.x docs

2.x docs

Packages

This repository is a monorepo that we manage using Lerna. That means that we actually publish several packages to npm from the same codebase, including:

Package Version Docs Description
react-router npm The core of React Router
react-router-dom npm DOM bindings for React Router
react-router-native npm React Native bindings for React Router
react-router-config npm Static route config helpers

Redux users: The react-router-redux package is now deprecated. See Redux Integration for a better approach.

Changes

Detailed release notes for a given version can be found on our releases page.

For change notes prior to version 4, please see the CHANGES.md file.

Funding

You may provide financial support for this project by donating via Open Collective, attending one of our workshops, or purchasing one of our online courses. Thank you for your support!

About

react-router is developed and maintained by React Training and many amazing contributors. If you're interested in learning more about what React can do for your company, please get in touch!

Packages

No packages published

Languages

  • JavaScript 86.1%
  • Objective-C 4.6%
  • CSS 3.6%
  • EJS 1.9%
  • Starlark 1.6%
  • Java 1.4%
  • Shell 0.8%