React Hook Form
Performant form state library using React Hooks with minimal rerenders.
Forms, validation and schemas npm MIT
Used in agent projects
1,021
8.0% of 12,697 public repos built with AI coding agents
Rank in forms, validation and schemas
#2 of 22
by use in those projects
Downloads
54.7M
npm, last 7 days, react-hook-form
GitHub stars
44.9K
last push Oct 10, 2026
How React Hook Form is used
React Hook Form is a dependency in 1,021 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (8.0%), #2 of 22 in forms, validation and schemas. The most used alternative there is Zod. Projects that use it most often also use Zod (87.9%), clsx (87.0%), Lucide React (86.8%). It is more common in projects set up for Roo Code (17.7%) than for OpenCode (4.7%).
Often used with React Hook Form
| Zod | 87.9% of React Hook Form projects · 5.2× more than average |
|---|---|
| clsx | 87.0% of React Hook Form projects · 4.9× more than average |
| Lucide React | 86.8% of React Hook Form projects · 4.4× more than average |
| Tailwind Merge | 86.0% of React Hook Form projects · 5.1× more than average |
| React Hook Form Resolvers | 85.7% of React Hook Form projects · 12.3× more than average |
| Class Variance Authority | 82.3% of React Hook Form projects · 5.8× more than average |
| Radix UI | 77.0% of React Hook Form projects · 6.4× more than average |
| date-fns | 67.3% of React Hook Form projects · 7.9× more than average |
By coding agent
| Cursor | 12.4% of projects set up for it |
|---|---|
| Claude Code | 8.4% of projects set up for it |
| GitHub Copilot | 8.4% of projects set up for it |
| Devin Desktop | 13.9% of projects set up for it |
| OpenAI Codex | 7.6% of projects set up for it |
| Gemini CLI | 6.8% of projects set up for it |
| Roo Code | 17.7% of projects set up for it |
| OpenCode | 4.7% of projects set up for it |
Share of public repos configured for each agent that list React Hook Form as a dependency.
Install
| Package | npm install react-hook-form |
|---|---|
| Main stacks | Next.js (627), TypeScript / JavaScript (355), Python (14), React Native / Expo (14) |
| Example projects | Automattic/wp-calypso, ding113/claude-code-hub, kovrichard/catalyst, PageAI-Pro/vibe-coding-starter, blockscout/frontend |
Alternatives to React Hook Form
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Zod npm TypeScript-first schema validation library with static type inference. |
2,153 (17.0%) | 326M | 44.1K | MIT |
| React Hook Form Resolvers npm Validation resolvers for React Hook Form supporting Zod, Yup, and others. |
885 (7.0%) | 45.1M | 2,264 | MIT |
| Pydantic pypi Data validation and parsing library using Python type hints. |
649 (5.1%) | 222M | 29K | — |
| Ajv npm Fast JSON Schema validator for runtime schema validation and serialization. |
131 (1.0%) | 391M | 14.9K | MIT |
| jsonschema pypi Python implementation of JSON Schema validation for structured data. |
129 (1.0%) | 125M | 4,989 | — |
| Protocol Buffers pypi Serialization format and code generator for structured data. |
75 (0.6%) | 154M | — | 3-Clause BSD License |
| drizzle-zod npm Generate Zod validation schemas automatically from Drizzle ORM database schemas. |
68 (0.5%) | 3.2M | 36K | Apache-2.0 |
| ajv-formats npm Format validation plugin for Ajv JSON schema validator (email, UUID, date, etc). |
56 (0.4%) | 141M | 228 | MIT |