Forms and validation
Form state, and one schema shared by client and server.
Library 3 · Edited 2026-10-10
All
React Hook FormLibraryForm state with fewer re-renders.Fit:React forms with many fields and frequent validation.MIT · react-hook-form.comZodLibraryTypeScript-first schema validation, one schema for client and server.Fit:Forms, API inputs, and config should share one constraint.MIT · zod.devTanStack FormLibraryFramework-agnostic form state with detailed type inference.Fit:You do not want React Hook Form's conventions, or you are not on React.MIT · tanstack.com/form
How to choose
React forms React Hook Form plus Zod.
A schema that crosses the wire Put Zod in a shared module. Do not add a second regex on the client.
Not Hook Form Use TanStack Form, still with Zod.