Skip to content

Commit 210e6f7

Browse files
authored
Fix some links.
Closes #555
1 parent 5682bf7 commit 210e6f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ These two hooks will allow you to store the state that this library uses in what
9898

9999
#### How do I access router state in a container component?
100100

101-
React Router [provides route information via a route component's props](https://github.com/ReactTraining/react-router/blob/master/docs/Introduction.md#getting-url-parameters). This makes it easy to access them from a container component. When using [react-redux](https://github.com/reactjs/react-redux) to `connect()` your components to state, you can access the router's props from the [2nd argument of `mapStateToProps`](https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options):
101+
React Router [provides route information via a route component's props](https://github.com/ReactTraining/react-router/blob/v3/docs/Introduction.md#getting-url-parameters). This makes it easy to access them from a container component. When using [react-redux](https://github.com/reactjs/react-redux) to `connect()` your components to state, you can access the router's props from the [2nd argument of `mapStateToProps`](https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options):
102102

103103
```js
104104
function mapStateToProps(state, ownProps) {
@@ -171,15 +171,15 @@ The `options` object takes in the following optional keys:
171171
**You must install `routerMiddleware` for these action creators to work.**
172172

173173
Action creators that correspond with the [history methods of the same name]
174-
(https://github.com/mjackson/history/blob/master/README.md#navigation). For reference they are defined as follows:
174+
(https://github.com/ReactTraining/history/blob/v3/docs/GettingStarted.md#navigation). For reference they are defined as follows:
175175

176176
- `push` - Pushes a new location to history, becoming the current location.
177177
- `replace` - Replaces the current location in history.
178178
- `go` - Moves backwards or forwards a relative number of locations in history.
179179
- `goForward` - Moves forward one location. Equivalent to `go(1)`
180180
- `goBack` - Moves backwards one location. Equivalent to `go(-1)`
181181

182-
Both `push` and `replace` take in a [location descriptor](https://github.com/ReactTraining/history/blob/v2/docs/Glossary.md#locationdescriptor), which can be an object describing the URL or a plain string URL.
182+
Both `push` and `replace` take in a [location descriptor](https://github.com/ReactTraining/history/blob/v3/docs/Location.md), which can be an object describing the URL or a plain string URL.
183183

184184
These action creators are also available in one single object as `routerActions`, which can be used as a convenience when using Redux's `bindActionCreators()`.
185185

0 commit comments

Comments
 (0)