web-forms-react-hook-form
Installation
SKILL.md
React Hook Form Patterns
Quick Guide:
registerbinds native inputs and keeps them uncontrolled;Controllerwraps components that hold their own value;useFieldArraydrives repeatable rows and is keyed onfield.id. Validation arrives either asregisterrules or as a schema throughresolver. Re-renders are the thing to watch:useWatchanduseFormStatesubscribe to named fields, whereaswatch()and a wideformStatedestructure subscribe to the whole form.
Detailed Resources:
- examples/core.md — a type-safe form with
register, error display and accessibility attributes - examples/controlled-components.md —
Controlleraround a select, a date picker and a checkbox group - examples/validation.md — wiring a schema in through
resolver - examples/arrays.md —
useFieldArrayline items with a live total - examples/performance.md — isolated subscriptions,
FormStateSubscribe,useWatchexactandcompute - examples/form-options.md — the
valuesprop for async data,disabled, the<Form />component - examples/wizard.md — multi-step form with per-step
trigger() - reference.md — decision trees, API tables, version-to-feature lookup