React Hook Form Zod

Type-safe validated forms in React with react-hook-form and Zod, wired through zodResolver from @hookform/resolvers, covering useForm, register, handleSubmit, formState, Controller and useController, useFieldArray, useWatch, z.infer type inference, and shadcn/ui Form and Field components. Use when building validated React forms, sharing one Zod schema across client and server validation, handling nested objects, array fields, conditional or async validation and zod refine, building multi-step forms and wizards, adding dynamic repeatable fields, optimizing form re-renders, making error handling accessible, or debugging validation issues such as resolver not found or uncontrolled-to-controlled input warnings.

jackspace Updated

File contents

jackspace/ClaudeSkillz/tree/main/skills/react-hook-form-zod commit 8956a60a8c

Frequently asked questions

npx skillmds@latest add jackspace/react-hook-form-zod