Skip to content

Commit 6e1e935

Browse files
halitogunctimdorr
authored andcommitted
fix link on doc (#1307)
1 parent 0ce5f92 commit 6e1e935

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/api/connect.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ const mapStateToProps = (state, ownProps) => ({
6767
6868
Your `mapStateToProps` functions are expected to return an object. This object, normally referred to as `stateProps`, will be merged as props to your connected component. If you define `mergeProps`, it will be supplied as the first parameter to `mergeProps`.
6969
70-
The return of the `mapStateToProps` determine whether the connected component will re-render (details [here](../using-react-redux/connect-extracting-data-with-mapStateToProps.md#return-values-determine-if-your-component-re-renders)).
70+
The return of the `mapStateToProps` determine whether the connected component will re-render (details [here](../using-react-redux/connect-mapstate#return-values-determine-if-your-component-re-renders)).
7171
72-
For more details on recommended usage of `mapStateToProps`, please refer to [our guide on using `mapStateToProps`](../using-react-redux/connect-extracting-data-with-mapStateToProps.md).
72+
For more details on recommended usage of `mapStateToProps`, please refer to [our guide on using `mapStateToProps`](../using-react-redux/connect-mapstate).
7373
7474
> You may define `mapStateToProps` and `mapDispatchToProps` as a factory function, i.e., you return a function instead of an object. In this case your returned function will be treated as the real `mapStateToProps` or `mapDispatchToProps`, and be called in subsequent calls. You may see notes on [Factory Functions](#factory-functions) or our guide on performance optimizations.
7575
@@ -151,7 +151,7 @@ const mapDispatchToProps = (dispatch, ownProps) => {
151151
}
152152
```
153153
154-
For more details on recommended usage, please refer to [our guide on using `mapDispatchToProps`](../using-react-redux/connect-extracting-data-with-mapStateToProps.md).
154+
For more details on recommended usage, please refer to [our guide on using `mapDispatchToProps`](../using-react-redux/connect-mapdispatch).
155155
156156
> You may define `mapStateToProps` and `mapDispatchToProps` as a factory function, i.e., you return a function instead of an object. In this case your returned function will be treated as the real `mapStateToProps` or `mapDispatchToProps`, and be called in subsequent calls. You may see notes on [Factory Functions](#factory-functions) or our guide on performance optimizations.
157157
@@ -182,7 +182,7 @@ In this case, React-Redux binds the `dispatch` of your store to each of the acti
182182
bindActionCreators(mapDispatchToProps, dispatch)
183183
```
184184
185-
We also have a section in our `mapDispatchToProps` guide on the usage of object shorthand form [here](../using-react-redux/connect-extracting-data-with-mapStateToProps.md#defining-mapdispatchtoprops-as-an-object).
185+
We also have a section in our `mapDispatchToProps` guide on the usage of object shorthand form [here](../using-react-redux/connect-mapdispatch#defining-mapdispatchtoprops-as-an-object).
186186
187187
### `mergeProps?: (stateProps, dispatchProps, ownProps) => Object`
188188

website/versioned_docs/version-7.1/api/connect.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ const mapStateToProps = (state, ownProps) => ({
6868
6969
Your `mapStateToProps` functions are expected to return an object. This object, normally referred to as `stateProps`, will be merged as props to your connected component. If you define `mergeProps`, it will be supplied as the first parameter to `mergeProps`.
7070
71-
The return of the `mapStateToProps` determine whether the connected component will re-render (details [here](../using-react-redux/connect-extracting-data-with-mapStateToProps.md#return-values-determine-if-your-component-re-renders)).
71+
The return of the `mapStateToProps` determine whether the connected component will re-render (details [here](../using-react-redux/connect-mapstate#return-values-determine-if-your-component-re-renders)).
7272
73-
For more details on recommended usage of `mapStateToProps`, please refer to [our guide on using `mapStateToProps`](../using-react-redux/connect-extracting-data-with-mapStateToProps.md).
73+
For more details on recommended usage of `mapStateToProps`, please refer to [our guide on using `mapStateToProps`](../using-react-redux/connect-mapstate).
7474
7575
> You may define `mapStateToProps` and `mapDispatchToProps` as a factory function, i.e., you return a function instead of an object. In this case your returned function will be treated as the real `mapStateToProps` or `mapDispatchToProps`, and be called in subsequent calls. You may see notes on [Factory Functions](#factory-functions) or our guide on performance optimizations.
7676
@@ -152,7 +152,7 @@ const mapDispatchToProps = (dispatch, ownProps) => {
152152
}
153153
```
154154
155-
For more details on recommended usage, please refer to [our guide on using `mapDispatchToProps`](../using-react-redux/connect-extracting-data-with-mapStateToProps.md).
155+
For more details on recommended usage, please refer to [our guide on using `mapDispatchToProps`](../using-react-redux/connect-mapdispatch).
156156
157157
> You may define `mapStateToProps` and `mapDispatchToProps` as a factory function, i.e., you return a function instead of an object. In this case your returned function will be treated as the real `mapStateToProps` or `mapDispatchToProps`, and be called in subsequent calls. You may see notes on [Factory Functions](#factory-functions) or our guide on performance optimizations.
158158
@@ -183,7 +183,7 @@ In this case, React-Redux binds the `dispatch` of your store to each of the acti
183183
bindActionCreators(mapDispatchToProps, dispatch)
184184
```
185185
186-
We also have a section in our `mapDispatchToProps` guide on the usage of object shorthand form [here](../using-react-redux/connect-extracting-data-with-mapStateToProps.md#defining-mapdispatchtoprops-as-an-object).
186+
We also have a section in our `mapDispatchToProps` guide on the usage of object shorthand form [here](../using-react-redux/connect-mapdispatch#defining-mapdispatchtoprops-as-an-object).
187187
188188
### `mergeProps?: (stateProps, dispatchProps, ownProps) => Object`
189189

0 commit comments

Comments
 (0)