Created
August 16, 2020 23:57
-
-
Save pejantantangguh/10ec0fe067d0bb972c6e38ec24ae7cda to your computer and use it in GitHub Desktop.
Formik Reset Form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Formik | |
initialValues={initialValues} | |
validationSchema={validationSchema} | |
validateOnBlur={false} | |
validateOnChange={false} | |
onSubmit={async (values, { resetForm }) => { | |
await onSubmit(values) | |
resetForm() | |
}} | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment