react-hook-form /react-hook-form
📋 React Hooks for form state management and validation (Web + React Native)
★ 44,918⑂ 2,527👁 177⑃ 3,285● 5,047▤ 627
-3
Daily
+6
Weekly
44,918
stars
2,527
forks
177
watchers
3,285
prs
5,047
issues
627
releases
README
Get started |
API |
Form Builder |
FAQs |
Examples
Features
- Built with performance, UX and DX in mind
- Embraces native HTML form validation
- Out of the box integration with UI libraries
- Small size and no dependencies
- Supports Yup, Zod, AJV, Superstruct, Joi and others
Install
npm install react-hook-form
Quickstart
jsx
import { useForm } from 'react-hook-form';
function App() {
const {
register,
handleSubmit,
formState: { errors },
} = useForm();
return (
console.log(data))}
{errors.lastName && Last name is required.}
{errors.age && Please enter a number for age.}
);
}
Sponsors
We’re incredibly grateful to these kind and generous sponsors for their support!
Major Sponsors
| Follower24 |
|---|
| |
Supporting Sponsors
| Pennylane | Thanks.dev | Kinsta | Niche | Principal | Hygraph |
|---|---|---|---|---|---|
| | | | | | |
Past Sponsors
Thank you to our previous sponsors for your generous support!
| | | | | | | | | | |
|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|
| | | | | | | | | | |
| | | | | | | | | | |
Backers
Thanks go to all our backers! [Become a backer].
Contributors
Thanks go to these wonderful people! [Become a contributor].
Documentation website supported and backed by VercelDiscussions
#14032Open-source verification stack for AI-assisted React & TypeScript form and frontend apps (92-rule security scanner, headless Playwright QA & 72-rule UI linter)0 comments · 2026-11-14#14020State of v8?1 comments · 2026-11-10#13947External createFormControl traces for validation, reset and submit0 comments · 2026-10-25#13920Expose `subscribe` and `clearErrors` on `Control`2 comments · 2026-10-21#13856Why does form level validate errors not propagate down to fieldState.error for given field5 comments · 2026-10-13#13818React Hook Form + Zod in a localized magic-link form1 comments · 2026-10-02#13804Suggestions for a custom hook called useResetField that I created2 comments · 2026-09-29#13717A11yKit: 15 Free, Zero-Upload Accessibility & WCAG 2.2 Tools for React Hook Form Workflows0 comments · 2026-09-08
Latest release
Version 7.92.0 v7.92.0 2026-11-11🐞 Fixes - Fix useFormState and Controller unnecessarily cloning form state during mount and unmount (13945) - Fix setValues not updating dirty state for unregistered fields (13946) - Fix form state values becoming inconsistent (13948) - Fix setValue not selecting checkbox options with empty string values (13950) - Fix stale asynchronous form-level validation results (13951, 13954) - Fix useFieldArray applying reValidateMode: 'onSubmit' before submission (13952) - Fix default values not being applied correctly to selects with disabled optgroups (13953) - Fix useController reading stal