Skip to content

Commit e2b2ebe

Browse files
committed
Merge pull request #29 from af/patch-1
Readme: connect() should wrap Counter in example
2 parents 7a7ce7c + 59dcc84 commit e2b2ebe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ function mapDispatchToProps(dispatch) {
111111
export default connect(
112112
mapStateToProps,
113113
mapDispatchToProps
114-
)(CounterContainer);
114+
)(Counter);
115115

116116
// You can also pass an object instead of defining `mapDispatchToProps`:
117-
// export default connect(mapStateToProps, CounterActionCreators)(CounterContainer);
117+
// export default connect(mapStateToProps, CounterActionCreators)(Counter);
118118

119119
// Or you can pass `dispatch` down as a prop if you omit `mapDispatchToProps`:
120-
// export default connect(mapStateToProps)(CounterContainer);
120+
// export default connect(mapStateToProps)(Counter);
121121

122122
// See more recipes in detailed connect() examples below.
123123
```

0 commit comments

Comments
 (0)