React hook form

From pproenca/dot-skills · View interactive version

React hook form is an AI agent skill from the GitHub repository pproenca/dot-skills. React Hook Form performance optimization for client-side form validation using useForm, useWatch, useController, useFieldArray, the subscribe() API, and the Watch / FormStateSubscribe / FieldArray render-prop components. Covers RHF 7.82 additions including resetDefaultValues() and the disabled field

How to use this skill

Skill file

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:

When NOT to Use This Skill

Rule Categories by Priority

| Priority | Category | Impact | Prefix |

|----------|----------|--------|--------|

| 1 | Form Configuration | CRITICAL | formcfg- |

| 2 | Field Subscription | CRITICAL | sub- |

| 3 | Controlled Components | HIGH | ctrl- |

| 4 | Validation Patterns | HIGH | valid- |

| 5 | State Management | MEDIUM-HIGH | formstate- |

| 6 | Field Arrays | MEDIUM-HIGH | array- |

| 7 | Integration Patterns | MEDIUM | integ- |

Quick Reference

1. Form Configuration (CRITICAL)

2. Field Subscription (CRITICAL)

3. Controlled Components (HIGH)

4. Validation Patterns (HIGH)

5. State Management (MEDIUM-HIGH)

6. Field Arrays (MEDIUM-HIGH)

7. Integration Patterns (MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Related Skills

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.