A React package for managing form state and validation on the web and in React Native. It supports TypeScript and schema libraries such as Zod and Yup.
Overview
React Hook Form helps teams build forms in React with less boilerplate while keeping re-renders low. It targets both browser React apps and React Native, using hooks to wire inputs, track dirty and touched state, and surface validation errors.
Validation can follow HTML constraint rules or custom resolver rules. The API centers on register, handleSubmit, and formState so developers can choose when validation runs (on submit, blur, change, or other modes). The package is small and dependency-free, with TypeScript types included.
It is designed to work with any UI layer because form state stays local to components. Documentation covers API reference, examples, and an optional form builder. Sponsorship supports ongoing maintenance.
Key features
- Hook-based form state
- Web and React Native
- HTML constraint validation
- Custom resolver rules
- TypeScript support
- Low re-render design
- Zero package dependencies
- Configurable validation timing
Use cases
- Login and signup forms
- Multi-field wizards
- React Native forms
- Schema-driven validation