-* [`mapStateToProps(state, [ownProps]): stateProps`] \(*Function*): If a component is specified, it will subscribe to Redux store updates. Any time the component updates, `mapStateToProps` will be called. The results of `mapStateToProps` must be a plain object*, which will be merged into the component’s props. If you omit the component, it will not be subscribed to the Redux store. If `ownProps` is specified as a second argument, its value will be the props passed to your component, and `mapStateToProps` will be additionally re-invoked whenever the component receives new props (e.g. if props received from a parent component have shallowly changed, and you use the ownProps argument, mapStateToProps is re-evaluated).
0 commit comments