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
TypeScriptMITCreated 2019-03-05react-hook-form.com
Download: Version 7.92.0Version-7.92.0 ↓7.92.02026-11-11
-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 Vercel

Discussions

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

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON