Fully clearing form after submit

@aethyrion 2 months ago

Found an easier way to clear the form after submit:

  • Pass form into onSubmit method
  • Inside this method, call form.reset()

This'll clear the values, update the validation messages and unset touched.

There might be an even better way but this, to me, seems a lot simpler.

Chris Sevilleja 2 months ago

Yup! This is a great way to clear the form that was introduced after the videos were made.

Thanks for pointing this one out!