New advertisers: 50% off your first month with code FIRSTMONTHSee slots
pproenca avatar

React Hook Form

Performance-focused React Hook Form guide covering useForm, useWatch, useController, useFieldArray, and subscribe() for client-side forms.

skills.sh installs
3.1K
GitHub stars
227
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers 35 rules across 7 categories, from form configuration and field subscription to validation, state, field arrays, and UI integration
  • Includes render-prop components (Watch, FormStateSubscribe, FieldArray) and RHF 7.82 additions such as resetDefaultValues() and the field-array disabled option
  • Guides fixes for re-render costs, such as watching specific fields instead of the whole form and isolating controlled inputs in child components
  • Designed for client-side controlled forms; Server Actions and useActionState are excluded and belong to the react-19 skill

Install

$ npx -y skills add pproenca/dot-skills --skill react-hook-form -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

React Hook Form Best Practices by Community

Comprehensive performance optimization guide for React Hook Form applications. Contains 35 rules across 7 categories, each naming a decision that goes wrong by default. Verified against react-hook-form 7.82.0.

When to Apply

Reference these guidelines when:

  • Writing new forms with React Hook Form
  • Configuring useForm options (mode, defaultValues, validation)
  • Subscribing to form values with watch / useWatch / subscribe
  • Integrating controlled UI components (MUI, shadcn, Ant Design)
  • Managing dynamic field arrays with useFieldArray
  • Handling async submit, server errors, and submit lifecycle state
  • Reviewing forms for performance issues

When NOT to Use This Skill

  • React 19 Server Actions / useActionState — use the react-19 skill instead
  • Deeply nested, fully type-safe forms — TanStack Form may be a better fit for forms with complex nested schemas; this skill assumes you've already chosen RHF
  • Single-input or trivial forms — uncontrolled <form> + FormData is often simpler than pulling in any library

Rule Categories by Priority

Details

Repository
github.com/pproenca/dot-skills
Category
Frontend & UI Code
First seen
May 16, 2026

More from pproenca/dot-skills

All 100

Similar to React Hook Form

More Frontend & UI Code