What the way to reset all the form ? Like the errors displayed and the data in form
Simply provide a key prop to the form element, and change it whenever you wan to reset it. React will create a new fresh element for the new key.
Most helpful comment
Simply provide a key prop to the form element, and change it whenever you wan to reset it.
React will create a new fresh element for the new key.
486