Q:

Formik reset errors

I am trying to reset all errors in the form.
I tried using setErrors and setStatus, none of these are working. Errors in Formik state is not getting cleared.
setErrors({errors: {}})

and
setStatus({ errors: {}});

None of the above worked.
resetForm() clears all errors, but the form values are also reset which I don't want. Any pointers to clear only the errors object?

A:

While using setErrors, just pass the state of errors object you want. So to reset all errors, pass an empty object({}). 
setErrors({})

Codesandbox demo here.

