title: How to focus a Material UI Textfield on button click?
body: <p>How to focus a Textfield after clicking a button. I tried to use autoFocus but it did not work out: <a href="https://codesandbox.io/s/4j81n6px17" rel="noreferrer">Example sandbox</a></p>
  
  <pre><code>  &lt;div&gt;
      &lt;button onclick={() =&gt; this.setState({ focus: true })}&gt;
        Click to focus Textfield
      &lt;/button&gt;
      &lt;br /&gt;
      &lt;TextField
        label="My Textfield"
        id="mui-theme-provider-input"
        autoFocus={this.state.focus}
      /&gt;
    &lt;/div&gt;
  </code></pre>