You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ These two hooks will allow you to store the state that this library uses in what
98
98
99
99
#### How do I access router state in a container component?
100
100
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):
102
102
103
103
```js
104
104
functionmapStateToProps(state, ownProps) {
@@ -171,15 +171,15 @@ The `options` object takes in the following optional keys:
171
171
**You must install `routerMiddleware` for these action creators to work.**
172
172
173
173
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:
175
175
176
176
-`push` - Pushes a new location to history, becoming the current location.
177
177
-`replace` - Replaces the current location in history.
178
178
-`go` - Moves backwards or forwards a relative number of locations in history.
179
179
-`goForward` - Moves forward one location. Equivalent to `go(1)`
180
180
-`goBack` - Moves backwards one location. Equivalent to `go(-1)`
181
181
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.
183
183
184
184
These action creators are also available in one single object as `routerActions`, which can be used as a convenience when using Redux's `bindActionCreators()`.
0 commit comments