talira

Compare

React Hook FormTanStack Form
What it isPerformant, flexible and extensible forms with easy-to-use validationHeadless, performant, and type-safe form state management for TS/JS, React, Vue, Angular, Solid, and Lit
KindOpen sourceOpen source
Trust0.720.59
Stars449266771
Last commit2026-11-222026-11-24
LicenceMITMIT
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostableYesYes
Ways to run it——
SOC 2——
HIPAA——
SSO——
API——
Plugins——
MCP server——
Company—TanStack
Features
  • useForm with register for uncontrolled inputs and few re-renders
  • built-in rules: required, min, max, minLength, maxLength, pattern, validate
  • schema validation through @hookform/resolvers: Zod, Yup, Valibot, ArkType, Joi, Superstruct, TypeBox, Ajv, Effect, VineJS, Standard Schema and more
  • resolvers infer the form's input and output types from the schema
  • Controller and useController for controlled UI components
  • useFieldArray: append, prepend, insert, remove, swap, move, update and replace rows
  • useWatch, useFormState and useFormContext / FormProvider to isolate re-renders
  • useLens for type-safe reusable field components
  • All 13 features
  • adapters for React, Vue, Angular, Solid, Svelte and Lit over a framework-agnostic core
  • fully typed field names and values
  • field-level and form-level validation on change, blur, submit and more
  • async validators with debouncing (asyncDebounceMs, onChangeAsyncDebounceMs)
  • native support for Standard Schema libraries: Zod, Valibot, ArkType, Effect Schema
  • array fields (mode="array", pushValue and other helpers) and nested subfields
  • Subscribe component and selectors to re-render on slices of form state
  • server validation from the form's onSubmitAsync, mapped to fields
  • All 10 features
Limitations
  • Doesn't support flat field arrays: each entry in a useFieldArray must be an object, not a string or number
  • Doesn't support TypeScript versions before 5.4: its types need TypeScript 5.4 or later with strict mode