Skip to content

Commit

Permalink
Fix typo in docs for location API (remix-run#6916)
Browse files Browse the repository at this point in the history
Incorrect usage "its"; "it's" is correct here, a contraction for "it is"
  • Loading branch information
murbar authored and timdorr committed Sep 14, 2019
1 parent 11dad25 commit 6da6877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-router/docs/api/location.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The router will provide you with a location object in a few places:
- [Route children](./Route.md#children-func) as `({ location }) => ()`
- [withRouter](./withRouter.md) as `this.props.location`

It is also found on `history.location` but you shouldn't use that because its mutable. You can read more about that in the [history](./history.md) doc.
It is also found on `history.location` but you shouldn't use that because it's mutable. You can read more about that in the [history](./history.md) doc.

A location object is never mutated so you can use it in the lifecycle hooks to determine when navigation happens, this is really useful for data fetching and animation.

Expand Down

0 comments on commit 6da6877

Please sign in to comment.