import { type UseFieldArrayReplace } from "https://deno.land/x/netzo@0.5.70/deps/react-hook-form.ts";
Replace the entire field array values.
Examples
Example 1
Example 1
<button
type="button"
onClick={() => replace([{ name: "data" }, { name: "data" }])}
>
Replace
</button>
Type Parameters
TFieldValues extends FieldValues
optional
TFieldArrayName extends FieldArrayPath<TFieldValues> = FieldArrayPath<TFieldValues>definition: (value: FieldArray<TFieldValues, TFieldArrayName> | FieldArray<TFieldValues, TFieldArrayName>[]) => void