react-hook-form-zod
Installation
Summary
Type-safe validated forms with React Hook Form v7 and Zod v4, single schema for client and server.
- Combines uncontrolled registration with Zod schema validation and full TypeScript inference via
z.infer; supports dynamic fields, multi-step wizards, and conditional validation patterns - Includes resolver setup, error handling, useFieldArray for dynamic lists, and Controller integration for third-party components
- Documents 20 known issues and workarounds, including large-form performance optimization (300+ fields), Zod v4 optional field bugs, and SSR hydration mismatches
- Covers shadcn/ui integration, server-side validation patterns, and upcoming v8 breaking changes (field.id → field.key, watch callback removal)
SKILL.md
React Hook Form + Zod Validation
Status: Production Ready ✅ Last Verified: 2026-01-20 Latest Versions: react-hook-form@7.71.1, zod@4.3.5, @hookform/resolvers@5.2.2
Quick Start
npm install react-hook-form@7.70.0 zod@4.3.5 @hookform/resolvers@5.2.2
Basic Form Pattern:
const schema = z.object({
email: z.string().email(),
password: z.string().min(8),
Related skills
More from jezweb/claude-skills
tailwind-v4-shadcn
|
2.7Ktanstack-query
|
2.5Kshadcn-ui
Install and configure shadcn/ui components for React projects. Guides component selection, installation order, dependency management, customisation with semantic tokens, and common UI recipes (forms, data tables, navigation, modals). Use after tailwind-theme-builder has set up the theme infrastructure, when adding components, building forms, creating data tables, or setting up navigation.
2.5Ktailwind-theme-builder
>
2.2Kfastapi
|
2.0Kcolor-palette
>
1.9K