title: Use of htmlFor in Formik - React
body: <p>I guess there is no clear context for this anywhere. Can someone explain what is the use for <code>htmlFor</code> in <a href="https://formik.org/docs/overview" rel="nofollow noreferrer">Formik</a>?</p>
  <pre><code>&lt;form onSubmit={formik.handleSubmit}&gt;
    &lt;label htmlFor=&quot;email&quot;&gt;Email&lt;/label&gt;
    &lt;input id=&quot;email&quot; name=&quot;email&quot; type=&quot;email&quot; onChange={formik.handleChange} value={formik.values.title} /&gt;
    &lt;button type=&quot;submit&quot;&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  <p>I have created a working example using <a href="https://codesandbox.io/s/formik-react-zs336?file=/src/App.js:424-877" rel="nofollow noreferrer">CodeSandbox</a>.</p>