Skip to content

Commit 294c42c

Browse files
Kerumentimdorr
authored andcommitted
[Docs] Fix duplicated words in mapState (#1037)
1 parent 05f943d commit 294c42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/connect-extracting-data-with-mapStateToProps.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function mapStateToProps(state, ownProps?)
2222
2323
It should take a first argument called `state`, optionally a second argument called `ownProps`, and return a plain object containing the data that the connected component needs.
2424
25-
This function should be passed as the first argument to `connect`, and will be will be called every time when the Redux store state changes. If you do not wish to subscribe to the store, pass `null` or `undefined` to `connect` in place of `mapStateToProps`.
25+
This function should be passed as the first argument to `connect`, and will be called every time when the Redux store state changes. If you do not wish to subscribe to the store, pass `null` or `undefined` to `connect` in place of `mapStateToProps`.
2626
2727
**It does not matter if a `mapStateToProps` function is written using the `function` keyword (`function mapState(state) { }` ) or as an arrow function (`const mapState = (state) => { }` )** - it will work the same either way.
2828

0 commit comments

Comments
 (0)