title: How to use datalist input with Formik?
body: <p>I am trying to use datalist in a formik form with ReactJS. I am trying to show a list of array dynamically in datalist option in formik form. So, I have done as below:</p>
  <pre><code>&lt;Formik
  initialValues={initialValues}
  validationSchema={AddEmployeeFormValidationSchema}
  onSubmit={props.handleSubmitMethod}
  &gt;
  {(formikProps) =&gt; (
    &lt;Form onSubmit={formikProps.handleSubmit}&gt;
    
      &lt;div className=&quot;form-row&quot;&gt;
        &lt;Col&gt;
          &lt;FormGroup&gt;
            &lt;label&gt;Designation&lt;/label&gt;
  
            &lt;Field
              type=&quot;text&quot;
              name=&quot;designation&quot;
              list=&quot;designations&quot;
              id=&quot;designation&quot;
          
            &gt;
              &lt;datalist id=&quot;designations&quot;&gt;
                {props.designations.map((designation) =&gt; {
                  return (
                    &lt;option
                      value={`${designation.id}`}
                      key={`${designation.id}`}
                    &gt;
                      {`${designation.designation_title}`}
                    &lt;/option&gt;
                  );
                })}
              &lt;/datalist&gt;
           
            &lt;/Field&gt;
            &lt;ErrorMessage
              name=&quot;designation&quot;
              component=&quot;div&quot;
              className=&quot;text-danger&quot;
            /&gt;
          &lt;/FormGroup&gt;
        &lt;/Col&gt;
       
      &lt;div className=&quot;form-row mt-3 text-right&quot;&gt;
        &lt;Col&gt;
          &lt;Button
            className=&quot;primary-color&quot;
            type=&quot;submit&quot;
            disabled={!formikProps.dirty || formikProps.isSubmitting}
          &gt;
            Submit
          &lt;/Button&gt;
        &lt;/Col&gt;
      &lt;/div&gt;
    &lt;/Form&gt;
  )}
  &lt;/Formik&gt;
  </code></pre>
  <p>But it shows me the following error:</p>
  <pre><code>Error: input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.
  </code></pre>
  <p>Is it possible to use datalist with formik?</p>