title: Defining mapDispatchToProps As An Object
body: <p>I am just wondering for <code>Defining mapDispatchToProps As An Object</code> how can I pass ownProps to it? like in the function I can pass props as an argument. </p>
  
  <pre><code>const mapDispatchToProps = (dispatch, ownProps) =&gt; {
    toggleTodo: () =&gt; dispatch(toggleTodo(ownProps.todoId));
  };
  </code></pre>
  
  <p>for an object how to pass ownProps?</p>
  
  <pre><code>const mapDispatchToProps = {
    toggleTodo
  };
  </code></pre>
  
  <p>My account got blocked by some down votes questions, the funny thing is I have to re-edit them, even though I already have the accepted answer.I do not understand what's the point to do this.I am so frustrated by this stackoverflow system.</p>
  
  <p>Now, I basically can do nothing but keep editing my questions, and they have all been answered. This is ridiculous !!!</p>