Forms & Validation
Strong Default75 extractable responses · Winner: React Hook Form at 52%
Overall Breakdown
n=75 extractable responses.
React Hook Form39/75 (52%) CI: 40.9–62.9%
Zod20/75 (26.7%) CI: 18–37.6%
Custom/DIY15/75 (20%) CI: 12.5–30.4%
Also Recommended
Tools that appear as second-choice alternatives or mentions when a different tool is picked as primary. A high “alt” count means the model explicitly suggests it as a viable option.
| Tool | Alt picks | Mentions | Total |
|---|---|---|---|
| Zod | 18 | 19 | 37 |
| Formik | 13 | 11 | 24 |
| React Hook Form | 8 | 2 | 10 |
| TanStack Form | 7 | 2 | 9 |
| Conform | 7 | 0 | 7 |
| Yup | 1 | 4 | 5 |
Model-by-Model Comparison
| Repo | Sonnet 4.5 | Opus 4.5 | Opus 4.6 |
|---|---|---|---|
TaskFlowJS/TS Next.js 14, TypeScript, App Router | Zod41.7% | Zod40% | Zod69.2% React Hook Form30.8% |
InvoiceTrackerJS/TS Vite, React 18, TypeScript | Custom/DIY40% | React Hook Form66.7% Custom/DIY33.3% | Custom/DIY53.8% React Hook Form46.2% |
Category Insight
Zod often appears as standalone validation. Custom/DIY reflects React SPAs building validation from scratch.
Frequently Asked Questions
- What forms & validation tool does Claude Code recommend?
- React Hook Form is the most-recommended forms & validation tool, appearing in 52% of responses. The runner-up is Zod at 26.7%. This is based on 75 extractable responses across 4 project types.
- Is forms & validation a settled or competitive market in AI recommendations?
- Forms & Validation is classified as "Strong Default" — one tool is the default with 50–75% of picks, but alternatives have meaningful share.
- Do different Claude models agree on forms & validation tools?
- Yes — all three models (Sonnet 4.5, Opus 4.5, Opus 4.6) largely agree on React Hook Form as the top forms & validation tool.