diff --git a/src/App.tsx b/src/App.tsx index 97ecadc..ca05ade 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -45,11 +45,13 @@ function App() { const { register, handleSubmit, + reset, formState: { errors }, } = useForm(); const onSubmit = (data: TFormValues) => { console.log("form Data = ", data); + reset(); }; return (