Skip to content

Commit 91b548e

Browse files
authored
Make examples in docs consistent
1 parent b80c6fb commit 91b548e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Instead, it *returns* a new, connected component class, for you to use.
7474

7575
> Note: `ownProps` **is not passed** to `mapStateToProps` and `mapDispatchToProps` if formal definition of the function contains one mandatory parameter (function has length 1). For example, function defined like below won't receive `ownProps` as the second argument.
7676
```javascript
77-
function mapDispatchToProps(state) {
77+
function mapStateToProps(state) {
7878
console.log(state); // state
7979
console.log(arguments[1]); // undefined
8080
}

0 commit comments

Comments
 (0)