title: How to get simple dispatch from this.props using connect w/ Redux?
body: <p>I've got a simple React component that I connect up (mapping a simple array/state over). To keep from referencing the context for store I'd like a way to get "dispatch" directly from props. I've seen others using this approach but don't have access to this for some reason :)</p>
  
  <p>Here are the versions of each npm dependency I'm using currently</p>
  
  <pre><code>"react": "0.14.3",
  "react-redux": "^4.0.0",
  "react-router": "1.0.1",
  "redux": "^3.0.4",
  "redux-thunk": "^1.0.2"
  </code></pre>
  
  <p>Here is the component w/ connect method</p>
  
  <pre><code>class Users extends React.Component {
      render() {
          const { people } = this.props;
          return (
              &lt;div&gt;
                  &lt;div&gt;{this.props.children}&lt;/div&gt;
                  &lt;button onClick={() =&gt; { this.props.dispatch({type: ActionTypes.ADD_USER, id: 4}); }}&gt;Add User&lt;/button&gt;
              &lt;/div&gt;
          );
      }
  };
  
  function mapStateToProps(state) {
      return { people: state.people };
  }
  
  export default connect(mapStateToProps, {
      fetchUsers
  })(Users);
  </code></pre>
  
  <p>If you need to see the reducer (nothing exciting but here it is)</p>
  
  <pre><code>const initialState = {
      people: []
  };
  
  export default function(state=initialState, action) {
      if (action.type === ActionTypes.ADD_USER) {
          let newPeople = state.people.concat([{id: action.id, name: 'wat'}]);
          return {people: newPeople};
      }
      return state;
  };
  </code></pre>
  
  <p>If you need to see how my router is configured w/ redux</p>
  
  <pre><code>const createStoreWithMiddleware = applyMiddleware(
        thunk
  )(createStore);
  
  const store = createStoreWithMiddleware(reducers);
  
  var Route = (
    &lt;Provider store={store}&gt;
      &lt;Router history={createBrowserHistory()}&gt;
        {Routes}
      &lt;/Router&gt;
    &lt;/Provider&gt;
  );
  </code></pre>
  
  <p><strong>update</strong></p>
  
  <p>looks like if I omit my own dispatch in the connect (currently above I'm showing fetchUsers), I'd get dispatch free (just not sure if this is how a setup w/ async actions would work usually). Do people mix and match or is it all or nothing?</p>
  
  <p>[mapDispatchToProps]</p>