Skip to content

Commit

Permalink
Make examples in docs consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
erykpiast committed Jun 29, 2016
1 parent b80c6fb commit 91b548e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Instead, it *returns* a new, connected component class, for you to use.

> 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.
```javascript
function mapDispatchToProps(state) {
function mapStateToProps(state) {
console.log(state); // state
console.log(arguments[1]); // undefined
}
Expand Down

0 comments on commit 91b548e

Please sign in to comment.