Skip to content

Commit

Permalink
Fix doc links to history (remix-run#3973)
Browse files Browse the repository at this point in the history
Change link urls from master branch to v2.x branch. This also changes links from ReactTraining/history to mjackson/history
  • Loading branch information
pshrmn authored and timdorr committed Sep 29, 2016
1 parent 3261d6a commit 4f27461
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -644,9 +644,9 @@ For more details, please see the [histories guide](/docs/guides/Histories.md).
`useRouterHistory` is a `history` enhancer that configures a given `createHistory` factory to work with React Router. This allows using custom histories in addition to the bundled singleton histories.

It also pre-enhances the history with the
[useQueries](https://github.com/ReactTraining/history/blob/master/docs/QuerySupport.md)
[useQueries](https://github.com/mjackson/history/blob/v2.x/docs/QuerySupport.md)
and
[useBasename](https://github.com/ReactTraining/history/blob/master/docs/BasenameSupport.md)
[useBasename](https://github.com/mjackson/history/blob/v2.x/docs/BasenameSupport.md)
enhancers from `history`

#### Example
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/Histories.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ render(

If you'd like to further customize the history options or use other
enhancers from
[history](https://github.com/ReactTraining/history/) you can use
[history](https://github.com/mjackson/history/) you can use
`useRouterHistory`.

Be aware that `useRouterHistory` already pre-enhances your history
factory with the [useQueries](https://github.com/ReactTraining/history/blob/master/docs/QuerySupport.md) and [useBasename](https://github.com/ReactTraining/history/blob/master/docs/BasenameSupport.md) enhancers from `history`.
factory with the [useQueries](https://github.com/mjackson/history/blob/v2.x/docs/QuerySupport.md) and [useBasename](https://github.com/mjackson/history/blob/v2.x/docs/BasenameSupport.md) enhancers from `history`.

### Examples:

Expand All @@ -159,7 +159,7 @@ const history = useRouterHistory(createHistory)({
```

Using the
[useBeforeUnload](https://github.com/mjackson/history/blob/master/docs/ConfirmingNavigation.md)
[useBeforeUnload](https://github.com/mjackson/history/blob/v2.x/docs/ConfirmingNavigation.md)
enhancer:

```js
Expand Down

0 comments on commit 4f27461

Please sign in to comment.