React Flexible FormDocsExamplesGitHub
DocumentationOverviewGetting StartedTypeScriptAPIuseFormFielduseSubformuseFieldArrayuseConvertutilsExamplesSimple FormChakra UI FormForm with ArraySubformCustom useConvertForm State in ReduxForm with LoaderForm based on Material UIThrottled error validation

useFieldArray

useFieldArray is a hook help managing array in the form. It produce wrappers around setFieldValue to reduce boilerplate when managing arrays.

const { append, prepend, insert, swap, move, update, replace, remove } =
  useFieldArray({ formControl, name });

Parameters

Return value

useFieldArray returns an object with array helpers.