React Redux provides function connect to bind Redux state and dispatch to React component (as properties).
connect([mapStateToProps], [mapDispatchToProps], [mergeProps], [options])
mapStateToProps(state, [ownProps]): stateProps
mapDispatchToProps(dispatch, [ownProps]): dispatchProps
How to access properties added by function mapStateToProps in function mapDispatchToProps?
For example, I use function mapStateToProps to add property propertyFromState to the component, how to access property propertyFromState in function mapDispatchToProps?
I try to use parameter ownProps to access it, but it is undefined.