react-hook-form
7.91.0 · 23 Oct 2026MIT42M / weekRepositoryHomepagenpmAtom feed
595 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
6.15.3
21 Feb 2021Reading the note…
6.15.2
19 Feb 2021Reading the note…
6.15.1
2 Feb 2021Reading the note…
6.15.0
2 Feb 2021Radio input default selection will return
nullinstead of empty string''valueAsNumberwith empty input will returnNaNinstead of0
6.14.2
18 Jan 2021Reading the note…
6.14.1
9 Jan 2021Reading the note…
6.14.0
31 Dec 2020setValuewithout shouldUnregister:false will no longer deep clone its value instead with shallow cloneNew formState
isValidating, this will set totrueduring validation.
6.13.1
15 Dec 2020Reading the note…
6.13.0
11 Dec 2020Reading the note…
6.12.2
2 Dec 2020Reading the note…
6.12.1
29 Nov 2020Reading the note…
6.12.0
28 Nov 2020When invoking
reset({ value })value will be shallow clone value object which you have supplied instead of deepClone.New custom hook
useController: This custom hook is what powers Controller, and shares the same props and methods as Controller. It's useful to create reusable Controlled input, while Controller is the flexible option to drop into your page or form.
6.11.5
23 Nov 2020Reading the note…
6.11.4
21 Nov 2020Reading the note…
6.11.3
17 Nov 2020Reading the note…
6.11.2
14 Nov 2020Reading the note…
6.11.1
14 Nov 2020Reading the note…
6.11.0
6 Nov 2020defaultValuesis required to measureisDirty, keep a single source of truth to avoid multiple issues raised aroundisDirtyWhen
watchwithuseFieldArray,fieldsobject is no longer required as defaultValue
6.10.1
1 Nov 2020Reading the note…
6.10.0
31 Oct 2020Controllerwill have an extrarefprops to improve DX in terms of focus management.resolverwith group error object will no longer need withtriggerto show and clear error. This minor version made hook form look at parent error node to detect if there is any group error to show and hide.
6.9.6
23 Oct 2020Reading the note…
6.9.5
20 Oct 2020Reading the note…
6.9.4
18 Oct 2020Reading the note…
6.9.3
17 Oct 2020Reading the note…
6.9.2
7 Oct 2020Reading the note…
6.9.1
6 Oct 2020Reading the note…
6.9.0
2 Oct 2020With shouldUnregister set to false, empty Field Array will default as submission result.
6.8.6
26 Sep 2020Reading the note…
6.8.5
25 Sep 2020Reading the note…
6.8.4
21 Sep 2020Reading the note…
6.8.3
18 Sep 2020Reading the note…
6.8.2
13 Sep 2020Reading the note…
6.8.1
9 Sep 2020Reading the note…
6.8.0
9 Sep 2020New formState
isSubmitSuccessfulto indicate successful submissionsetErrornow support focus on the actual inputWith
shouldUnregister:falsedefaultValuesdata will be part of the submission data
Added
New formState
isSubmitSuccessfulto indicate successful submissionsetErrornow support focus on the actual input
setError('test', { message: 'This is required', shouldFocus: true });Changed
With
shouldUnregister:falsedefaultValuesdata will be part of the submission dataWith
shouldUnregister:falseconditional field is going to work withuseFieldArraysetValuenow supportuseFieldArray
- setValue('test', 'data') + setValue('test', [{ test: '123' }]) // make it work for useFieldArray and target a field array keyRemove
exactconfig at clearErrors
- clearErrors('test', { exact: false }) + clearErrors('test') // does it automatically in the lib6.7.2
4 Sep 2020Reading the note…
6.7.1
2 Sep 2020Reading the note…
6.7.0
30 Aug 2020clearErrorhave second option argument for clear errors which are exact or key name
6.6.0
28 Aug 2020- breaking
All types from this lib has been exported. Important: only documented type: react-hook-form.com/ts will avoid breaking change.
6.5.3
25 Aug 2020Reading the note…
6.5.2
25 Aug 2020Reading the note…
6.5.1
24 Aug 2020Reading the note…
6.5.0
22 Aug 2020errorsis also part offormStateobjectdisabledinput will not be part of the submission data by following the HTML standard
6.4.1
18 Aug 2020Reading the note…
6.4.0
15 Aug 2020Controller'srenderprop will pass downnameprophandleSubmittake a second callback for errors callbackNew mode
onTouchedwill only trigger validation after inputs are touched
Added
Controller'srenderprop will pass downnameprophandleSubmittake a second callback for errors callbackNew mode
onTouchedwill only trigger validation after inputs are touched
Changed
registerno longer comparerefdifference with React Native
6.3.3
12 Aug 2020Reading the note…
6.3.2
10 Aug 2020Reading the note…
6.3.1
8 Aug 2020Reading the note…
6.3.0
3 Aug 2020defaultValueis become required foruseFieldArrayat each input
6.2.0
30 Jul 2020Revert
getValueswill return default values before inputs registration
6.1.2
28 Jul 2020Reading the note…