mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
In react-router v3.0.5, [`withRouter`][0] passes 4 props to the wrapped component: `location`, `params`, `router`, and `routes`. These props are different than those passed to `Route` components; these all come directly from the Router either via `this.props` or `this.context`. The component passed to `withRouter` are passed these props, but the component returned from `withRouter` require only the component's own props. [0]: https://github.com/ReactTraining/react-router/blob/v3.0.5/modules/withRouter.js#L40