diff --git a/docs/api.md b/docs/api.md index 3252f6e7f..155d7b444 100644 --- a/docs/api.md +++ b/docs/api.md @@ -102,9 +102,10 @@ function mapStateToProps(state) { ```js const mapStateToProps = (state, ownProps = {}) => { console.log(state); // state - console.log(ownProps); // undefined + console.log(ownProps); // {} } ``` + Functions with no mandatory parameters or two parameters **will receive** `ownProps`. ```js const mapStateToProps = (state, ownProps) => {