title: Unable to access component state in withFormik handleSubmit
body: <p>I am using formik (<a href="https://github.com/jaredpalmer/formik" rel="nofollow noreferrer">https://github.com/jaredpalmer/formik</a>) for forms of my react application.
  I want to be able to update component state to show a success message after handleSubmit completed successfully.
  But I am unable to achieve that. I am getting errors.</p>
  
  <pre><code>export default withFormik({
    mapPropsToValues ({ email }) {
      return {
        email: email || ''
      };
    },
    validationSchema: Yup.object().shape({
      email: Yup.string().email('Email not valid').required('Email is required')
    }),
    handleSubmit(values, { resetForm, setErrors, setSubmitting }) {
  
      Accounts.forgotPassword({
        email: values.email
      }, (error) =&gt; {
        if (error) {
          setErrors({ email: 'Error: ' + error.reason });
        } else {
          this.setState({success: 'Success: Check your inbox for a reset link!'});
          resetForm();
        }
        setSubmitting(false);
      });
    }
  })(RecoverPassword);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/isskt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/isskt.png" alt="enter image description here"></a></p>