Individual skill
react-hook-form
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-array option. This skill should be used when building client-side controlled forms with React Hook Form library. This skill does NOT cover React 19 Server Actions, useActionState, or server-side form handling (use react-19 skill for those).
skills/.curated/react-hook-form/SKILL.md
Source commit cf93c57cac89d6fc3e4194686000411567f5caf3
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Network or broad shell
- Last checked
- Nov 5, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 221
- Repository last updated
- Aug 15, 2026
- License
- MIT
Observed agent integration: codex
- engineering Derived category
- engineering-web Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
AGENTS.mddoc · 10,423 bytesREADME.mddoc · 4,433 bytesSKILL.mdcore · 6,190 bytesassets/templates/_template.mddoc · 589 bytesmetadata.jsonasset · 1,967 bytesreferences/_sections.mddoc · 2,083 bytesreferences/array-disabled-silently-noops.mddoc · 2,397 bytesreferences/array-separate-crud-operations.mddoc · 2,003 bytesreferences/array-unique-fieldarray-per-name.mddoc · 1,738 bytesreferences/array-use-field-id-as-key.mddoc · 2,101 bytesreferences/ctrl-controller-field-props.mddoc · 1,731 bytesreferences/ctrl-usecontroller-isolation.mddoc · 2,892 bytesreferences/formcfg-async-default-values.mddoc · 1,796 bytesreferences/formcfg-default-values.mddoc · 2,381 bytesreferences/formcfg-disabled-prop.mddoc · 3,839 bytesreferences/formcfg-revalidate-mode.mddoc · 2,352 bytesreferences/formcfg-should-unregister.mddoc · 2,517 bytesreferences/formcfg-transformed-values-generic.mddoc · 3,488 bytesreferences/formcfg-useeffect-dependency.mddoc · 2,401 bytesreferences/formcfg-validation-mode.mddoc · 2,468 bytesreferences/formcfg-values-prop.mddoc · 2,649 bytesreferences/formstate-async-submit-lifecycle.mddoc · 3,567 bytesreferences/formstate-avoid-isvalid-with-onsubmit.mddoc · 2,663 bytesreferences/formstate-destructure-formstate.mddoc · 2,339 bytesreferences/formstate-handlesubmit-oninvalid.mddoc · 2,485 bytesreferences/formstate-reset-default-values.mddoc · 3,190 bytesreferences/formstate-useformstate-isolation.mddoc · 2,301 bytesreferences/integ-shadcn-form-import.mddoc · 1,637 bytesreferences/integ-shadcn-select-wiring.mddoc · 1,904 bytesreferences/integ-value-transform.mddoc · 1,554 bytesreferences/sub-avoid-watch-in-render.mddoc · 1,604 bytesreferences/sub-memo-cannot-beat-context.mddoc · 2,359 bytesreferences/sub-render-prop-components.mddoc · 3,651 bytesreferences/sub-subscribe-outside-react.mddoc · 3,253 bytesreferences/sub-useformcontext-sparingly.mddoc · 1,659 bytesreferences/sub-usewatch-over-watch.mddoc · 2,432 bytesreferences/sub-watch-specific-fields.mddoc · 1,847 bytesreferences/valid-delay-error.mddoc · 2,127 bytesreferences/valid-resolver-caching.mddoc · 2,771 bytesreferences/valid-server-errors.mddoc · 3,636 bytesreferences/valid-valueasnumber-empty-nan.mddoc · 2,754 bytes
Read excerpt
# 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