A skill covering all API documentation for React Hook Form v7. Depending on the user's task, read the appropriate README.md and follow it to individual files.
Directory structure
skills/react-hook-form/
SKILL.md
references/
get-started/
README.md
api/
README.md
useform.md
usecontroller.md
useformcontext.md
usewatch.md
useformstate.md
usefieldarray.md
uselens.md
createformcontrol.md
useform-register.md
useform-unregister.md
useform-formstate.md
useform-watch.md
useform-subscribe.md
useform-handlesubmit.md
useform-reset.md
useform-resetfield.md
useform-resetdefaultvalues.md
useform-seterror.md
useform-clearerrors.md
useform-setvalue.md
useform-setvalues.md
useform-setfocus.md
useform-getvalues.md
useform-getfieldstate.md
useform-trigger.md
useform-control.md
useform-form.md
controller.md
formprovider.md
watch-component.md
errormessage.md
formstatesubscribe.md
typescript/
README.md
advanced/
README.md
faqs/
README.md
dev-tools/
README.md
samples/
README.md
basic-form.md
schema-validation.md
controlled-component.md
field-array.md
form-provider.md
async-submit.md
watch-conditional-fields.md
reset-after-submit.md
typescript-typed-form.md
scripts/
README.md
install.md
develop.md
Exploration procedure
Derive the category from the task, and identify the target page in the category's README.md:
- Find the category corresponding to the task in the mapping table below
- of that category
references/{category}/README.mdto identify the target page - For the relevant page,
.mdRead to check the details
Task → Category Mapping
| Task | Category | Reference README |
|---|---|---|
| Installation, basic form creation, validation rules, schema integration | get-started | references/get-started/README.md |
| useForm, register, handleSubmit, reset, watch, setValue, getValues | api | references/api/README.md |
| Controller, useController, FormProvider, useFormContext | api | references/api/README.md |
| useFieldArray (dynamic fields), useLens, createFormControl | api | references/api/README.md |
| useWatch, useFormState, subscribe, formState | api | references/api/README.md |
| Type definitions, generics, FieldPath, Resolver types | typescript | references/typescript/README.md |
| Accessibility, wizard forms, testing, virtual lists | advanced | references/advanced/README.md |
| Performance, class components, watch vs getValues, conditional rendering | faqs | references/faqs/README.md |
| DevTools installation and debugging | dev-tools | references/dev-tools/README.md |
| Want to know typical usage, want to see implementation examples | samples | samples/README.md |
| Want to know commands for installation and development environment setup | scripts | scripts/README.md |