hunk.code_window: ### `resetForm`
   Because we introduced `initialErrors`, `initialTouched`, `initialStatus` props, `resetForm`'s signature has changed. It now accepts the next initial state of Formik (instead of just the next initial values).
   ### `validate`
   As you may know, you can return a Promise of a validation error from `validate`. In 1.x, it didn't matter if this promise is resolved or rejected as in both cases the payload of the promise was interpreted as the validation error. In 2.x, rejection will be interpreted as an actual exception and it won't update the form error state. Any validation function that returns a rejected promise of errors needs to be adjusted to return a resolved promise of errors instead.
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit: ### `setError`
   Please use Formik's `setStatus(status)` instead. It works identically.
  
hunk.file_path: docs/migrating-v2.md
hunk.type: add
file: import React from 'react';
  import ReactDOM from 'react-dom';
  import { Formik, Field, Form } from 'formik';
  
  const sleep = ms => new Promise(r => setTimeout(r, ms));
  
  const Example = () => (
    <div>
      <h1>Sign Up</h1>
      <Formik
        initialValues={{
          firstName: '',
          lastName: '',
          email: '',
        }}
        onSubmit={async values => {
          await sleep(500);
          alert(JSON.stringify(values, null, 2));
        }}
      >
        {({ isSubmitting }) => (
          <Form>
            <label htmlFor="firstName">First Name</label>
            <Field name="firstName" placeholder="Jane" />
  
            <label htmlFor="lastName">Last Name</label>
            <Field name="lastName" placeholder="Doe" />
  
            <label htmlFor="email">Email</label>
            <Field name="email" placeholder="jane@acme.com" type="email" />
  
            <button type="submit" disabled={isSubmitting}>
              Submit
            </button>
          </Form>
        )}
      </Formik>
    </div>
  );
  
  ReactDOM.render(<Example />, document.getElementById('root'));
  