title: call component method on action from other component
body: <p>What is best way to invoke method in component A when button from component B is clicked?</p>
  
  <p>Both components are separated from each other.
  I believe I can use some very naive implementation with actions like:</p>
  
  <p>Component A sends action:</p>
  
  <pre><code>{action: "BUTTON_CLICKED", value: true}
  </code></pre>
  
  <p>Reducer catch action:</p>
  
  <pre><code>case "BUTTON_CLICKED": {
          const newState = { ...state };
          newState.clicked = true;
          return newState;
      }
  </code></pre>
  
  <p>Component B listen for props::</p>
  
  <pre><code>componentWillReceiveProps = (newProps) =&gt; {
      if (newProps.clicked) {
          someMethod()
      }
  };
  </code></pre>
  
  <p>and reset flag:</p>
  
  <pre><code>someMethod = ()=&gt;{
     dispatch({action: "BUTTON_CLICKED", value: false})
  }
  </code></pre>
  
  <p>But this way is so wrong.</p>
  
  <p>Any way to implement command pattern in react/redux?</p>
  
  <p>thanks</p>