Skip to content

Commit 94799ef

Browse files
jbizzletimdorr
jbizzle
authored andcommitted
docs/using-react-redux: Fixes substition of mapDispatchToProps with mapStateToProps (#1135)
My first read of the docs as currently written is that they incorrectly use the term `mapStateToProps` instead of `mapDispatchToProps` in the answer to "Can I mapDispatchToProps without mapStateToProps in Redux?" This version fixes that, assuming my reading is correct.
1 parent 3210a1f commit 94799ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/using-react-redux/connect-dispatching-actions-with-mapDispatchToProps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ There are discussions regarding whether to provide `dispatch` to your components
374374

375375
### Can I `mapDispatchToProps` without `mapStateToProps` in Redux?
376376

377-
Yes. You can skip the first parameter by passing `undefined` or `null`. Your component will not subscribe to the store, and will still receive the dispatch props defined by `mapStateToProps`.
377+
Yes. You can skip the first parameter by passing `undefined` or `null`. Your component will not subscribe to the store, and will still receive the dispatch props defined by `mapDispatchToProps`.
378378

379379
```js
380380
connect(

0 commit comments

Comments
 (0)