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