Skip to content

Instantly share code, notes, and snippets.

@pejantantangguh
Created August 16, 2020 23:57
Show Gist options
  • Save pejantantangguh/10ec0fe067d0bb972c6e38ec24ae7cda to your computer and use it in GitHub Desktop.
Save pejantantangguh/10ec0fe067d0bb972c6e38ec24ae7cda to your computer and use it in GitHub Desktop.
Formik Reset Form
<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