Packages

react-hook-form

7.91.0 · 23 Oct 2026MIT42M / weekRepositoryHomepagenpmAtom feed

Your version

7.37.0

6 Oct 2022Where it was published

7.91.0 is the newest release of 7.x.

In short

1 new1 changed

Release note

Added

  • New formState defaultValues

const { formState, watch } = useForm({
  defaultValues: { name: 'test' },
});
const { defaultValues } = useFormState();

const name = watch('name');

return (
  <div>
    <p>Your name was {defaultValues.name}</p>
    <p>Updated name is {name}</p>
  </div>
);

Changed

  • defaultValues: Complex object data contains prototype methods will not be cloned internally