We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14b5cff commit ca2afa0Copy full SHA for ca2afa0
README.md
@@ -118,7 +118,10 @@ function mapDispatch(dispatch) {
118
export default connect(mapState, mapDispatch)(CounterContainer);
119
120
// You can also pass an object instead of defining `mapDispatch`:
121
-//export default connect(mapState, CounterActionCreators)(CounterContainer);
+// export default connect(mapState, CounterActionCreators)(CounterContainer);
122
+
123
+// Or you can pass `dispatch` down as a prop if you omit `mapDispatch`:
124
+// export default connect(mapState)(CounterContainer);
125
```
126
127
Whether to put `connect()` call in the same file as the “dumb” component, or separately, is up to you.
0 commit comments