Klare Form in React
//with the useref hook you can do it easily
const form = useRef(null);
const handlesubmit = () => {
form.current.reset(); //this will reset all the inputs in the form
}
<form ref={form} onSubmit={handlesubmit}></form>
Johiny