In Formik, how to make the Reset button reset the form only after confirmation?
My code below still resets the form even when you click Cancel.
I understand OP's question was for Formik.
Formik
However, for anyone using useFormik hook and wanting to clear form on 'reset' button click, here's one way to achieve that.
useFormik
formik.resetForm()}> Reset