title: Reactjs: Switch tab on click of button in component
body: <p>I have 2 tabs which both have same component.</p>
  
  <p>On click of button in tab1 , tab2 should be selected.</p>
  
  <p><a href="http://jsfiddle.net/rzv6Lrjh/93/" rel="nofollow noreferrer">http://jsfiddle.net/rzv6Lrjh/93/</a> </p>
  
  <p>In this fiddle </p>
  
  <pre><code>render: function () {
      return (
          &lt;div&gt;
          &lt;Tabs selected={0}&gt;
            &lt;Pane label="Tab 1"&gt;
  
              &lt;Tickets key='1'/&gt;
            &lt;/Pane&gt;
            &lt;Pane label="Tab 2"&gt;
              &lt;Tickets key='2'/&gt;
            &lt;/Pane&gt;
          &lt;/Tabs&gt;
        &lt;/div&gt;
      );
    }
  </code></pre>
  
  <p>How to achieve this.</p>