Prompt Buddy logoPrompt Buddy

react-hook-form · React Hook Form Docs

useFieldArray

Implements dynamic form fields using the useFieldArray hook to manage arrays of inputs with optimized performance and built-in methods for manipulating field order and content.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

useFieldArray

Implements dynamic form fields using the useFieldArray hook to manage arrays of inputs with optimized performance and built-in methods for manipulating field order and content.

When To Use

Use when you need to implement dynamic forms where users can add, remove, or reorder multiple input fields such as a list of phone numbers or user addresses.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/usefieldarray-workflow-guide.mdDocumentation detailing the useFieldArray hook props, types, and usage for managing dynamic form fields in react-hook-form.Questions about documentation detailing the useFieldArray hook props, types, and usage for managing dynamic form fields in react-hook...

What This Skill Covers

  • useFieldArray: UseFieldArrayProps
  • Main sections: useFieldArray: UseFieldArrayProps, Props.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://react-hook-form.com/docs/usefieldarray