There're two common ways to reset all form data: reset after form submission and reset form manually. You might ask "how about the reset button?" Well... according to the UX research, which summarized: "Most Web forms would have improved usability if the Reset button was removed." So, generally not recommend but still supported.
We can also lazily set (or update) the form's default values by the
As the UX research mentioned: "Most Web forms would have improved usability if the Reset button was removed." But in case you need it, React Cool Form supports the onreset internally. All we need to do is to provide an
<input type="reset"> to the user.