query vs react-hook-form
query and react-hook-form are two comparable TypeScript projects, each with trade-offs depending on your needs. Both have comparable adoption (49,784 and 44,766 stars). Both are MIT-licensed.
| query | react-hook-form | |
|---|---|---|
| Summary | TanStack Query is an async state management library for fetching, caching, synchronizing, and updating server state in web apps. It abstracts the lifecycle of asynchronous data with declarative queries and mutations, supporting any data source (REST, GraphQL, promises) across React, Vue, Svelte, Solid, and Angular. | React Hook Form is a performant, dependency-free form library for React that uses uncontrolled inputs and hooks (register, handleSubmit, formState) to minimize re-renders, with built-in HTML validation and schema resolvers for Zod, Yup, Joi, and others. |
| Category | State management | State management |
| Language | TypeScript | TypeScript |
| License | MIT | MIT |
| Stars | 49,784 | 44,766 |
| Downloads/wk | — | 55.2M |
| Security | — | 1 advisory |
| Health | 100 | 100 |
| Last commit | 6/17/2026 | 6/16/2026 |
| Source | GitHub | GitHub |