Fully clearing form after submit

@aethyrion 4 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 4 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!

@maxwell7 2 weeks ago

Simple way to clear the form after submit! bullet force games