Skip to content

Commit

Permalink
Update docs to reference useRouteMatch (#7193)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchi committed Mar 13, 2020
1 parent b77283c commit 926d7a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-router/docs/api/match.md
Expand Up @@ -14,6 +14,7 @@ You'll have access to `match` objects in various places:
- [Route children](./Route.md#children-func) as `({ match }) => ()`
- [withRouter](./withRouter.md) as `this.props.match`
- [matchPath](./matchPath.md) as the return value
- [useRouteMatch](./hooks.md#useroutematch) as the return value

If a Route does not have a `path`, and therefore always matches, you'll get the closest parent match. Same goes for `withRouter`.

Expand Down

0 comments on commit 926d7a4

Please sign in to comment.