title: How to select all text in input with Reactjs, when it focused?
body: <p>For example: <a href="http://codepen.io/Enclave88/pen/YqNpog?editors=1010" rel="noreferrer">codepen</a> </p>
  
  <pre><code>var InputBox = React.createClass({
    render: function() {
      return (
        &lt;input className="mainInput" value='Some something'&gt;&lt;/input&gt;
      )
    }
  });
  </code></pre>