https://github.com/react-hook-form/react-hook-form
📋 React Hooks for form state management and validation (Web + React Native)
https://github.com/react-hook-form/react-hook-form
dx form-builder forms react-hooks react-native reactjs typescript ux validation
Last synced: 7 days ago
JSON representation
📋 React Hooks for form state management and validation (Web + React Native)
- Host: GitHub
- URL: https://github.com/react-hook-form/react-hook-form
- Owner: react-hook-form
- License: mit
- Created: 2019-03-05T23:47:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-29T04:43:23.000Z (17 days ago)
- Last Synced: 2025-04-01T00:11:08.371Z (14 days ago)
- Topics: dx, form-builder, forms, react-hooks, react-native, reactjs, typescript, ux, validation
- Language: TypeScript
- Homepage: https://react-hook-form.com
- Size: 27.8 MB
- Stars: 42,761
- Watchers: 174
- Forks: 2,153
- Open Issues: 89
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-react - react-hook-form - React Hooks for form state management and validation (**Awesome React** [](https://github.com/sindresorhus/awesome) / React)
- awesome-web-react - React Hook Form - Performant, flexible and extensible forms with easy to use validation. (Forms)
- awesome-list - react-hook-form - hook-form | 22590 | (TypeScript)
- awesome-react-components - react-hook-form - React hooks for form validation without the hassle. (Code Design / Form Logic)
- best-of-react - GitHub - 0% open · ⏱️ 06.06.2024): (Input Components)
- best-of-react - GitHub - 0% open · ⏱️ 06.06.2024): (Input Components)
- awesome-zod - `react-hook-form` - React Hooks for form state management and validation (Web + React Native). (Projects Using Zod)
- awesome-react-headless-components - React Hook Form - React Hooks for forms validation (Web + React Native) (Libraries)
- awesome-react - react-hook-form - React Hooks for form state management and validation.. (Uncategorized / Uncategorized)
- awesome-react - react-hook-form - React hooks for form validation without the hassle.  (UI Components / Form Components)
- awesome-react-components - react-hook-form - React hooks for form validation without the hassle. (Code Design / Form Logic)
- awesome-repositories - react-hook-form/react-hook-form
- awesome-react-native - react-hook-form - React hooks for forms validation without the hassle.  (Components / Forms)
- awesome-react - react-hook-form - Performant, flexible and extensible forms with easy to use validation
- awesome-github-star - react-hook-form - hook-form | 36904 | (TypeScript)
- awesome-react-components - react-hook-form - React hooks for form validation without the hassle. (Code Design / Form Logic)
- awesome-fe-resources - react-hook-form
- awesome-react-cn - react-hook-form - React Hooks for forms validation (Uncategorized / Uncategorized)
- awesome-react-native - react-hook-form - 轻量、高性能的表单库,支持 React 和 React Native。 (表单(Forms))
- awesome-react-native - react-hook-form - 轻量、高性能的表单库,支持 React 和 React Native。 (表单(Forms))
- awesome - react-hook-form/react-hook-form
- awesome-starred-test - react-hook-form/react-hook-form - 📋 React Hooks for form state management and validation (Web + React Native) (TypeScript)
- awesome-star-libs - react-hook-form / react-hook-form - hook表单 (目录)
- awesome-react-native - redux-hook-form ★2700 - React hooks for form validation without the hassle. (Web and Native) (Components / Forms)
- awesome-react - react-hook-form - React Hooks for forms validation (Web + React Native) ` 📝 2 days ago` (React [🔝](#readme))
- awesomeLibrary - react-hook-form
- awesome-react-hooks - react-hook-form - 📋 React Hooks for forms validation (Web + React Native) (Packages)
- awesome - react-hook-form/react-hook-form - 📋 React Hooks for form state management and validation (Web + React Native) (TypeScript)
- awesome - react-hook-form - 📋 React hooks for forms validation without the hassle. (TypeScript)
- awesome-react-native - redux-hook-form ★2700 - React hooks for form validation without the hassle. (Web and Native) (Components / Forms)
- awesome - react-hook-form/react-hook-form - 📋 React Hooks for form state management and validation (Web + React Native) (TypeScript)
- best-of-react - GitHub - 0% open · ⏱️ 06.06.2024): (Input Components)
- awesome-learning-resources - react-hook-form - React Hooks for forms validation (Uncategorized / Uncategorized)
- fucking-awesome-react-components - react-hook-form - React hooks for form validation without the hassle. (Code Design / Form Logic)
- StarryDivineSky - react-hook-form/react-hook-form
- stars - react-hook-form - hook-form | 42815 | (TypeScript)
- stars - react-hook-form - hook-form | 41842 | (TypeScript)
- awesome-react - react-hook-form - React Hooks for form state management and validation (Web + React Native). (Uncategorized / Uncategorized)
- awesome-react-components - react-hook-form - React hooks for form validation without the hassle. (Code Design / Form Logic)
- awesome-react-components - react-hook-form - React hooks for form validation without the hassle. (Code Design / Form Logic)
- react-components - React Hook Form - to-use validation. (Miscellaneous / Syntax highlighting)
- awesome - react-hook-form/react-hook-form - 📋 React Hooks for form state management and validation (Web + React Native) (TypeScript)
README
[](https://www.npmjs.com/package/react-hook-form)
[](https://www.npmjs.com/package/react-hook-form)
[](https://github.com/react-hook-form/react-hook-form/blob/master/LICENSE)
[](https://discord.gg/yYv7GZ8)
Get started |
API |
Form Builder |
FAQs |
Examples### Features
- Built with performance, UX and DX in mind
- Embraces native HTML form [validation](https://react-hook-form.com/get-started#Applyvalidation)
- Out of the box integration with [UI libraries](https://codesandbox.io/s/react-hook-form-v7-controller-5h1q5)
- [Small size](https://bundlephobia.com/result?p=react-hook-form@latest) and no [dependencies](./package.json)
- Support [Yup](https://github.com/jquense/yup), [Zod](https://github.com/colinhacks/zod), [AJV](https://github.com/ajv-validator/ajv), [Superstruct](https://github.com/ianstormtaylor/superstruct), [Joi](https://github.com/hapijs/joi) and [others](https://github.com/react-hook-form/resolvers)### 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 number for age.
}
);
}
```### Sponsors
Thanks go to these kind and lovely sponsors!
### Past sponsors
### Backers
Thanks go to all our backers! [[Become a backer](https://opencollective.com/react-hook-form#backer)].
### Contributors
Thanks go to these wonderful people! [[Become a contributor](CONTRIBUTING.md)].
Documentation website supported and backed by Vercel