const InputForm = () => { const { register, handleSubmit, reset } = useForm(); const onSubmit = (data) => { //... reset(); };