Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
type alias UseFieldArrayReplace
import { type UseFieldArrayReplace } from "https://deno.land/x/netzo@0.3.66/deps/react-hook-form.ts";

Replace the entire field array values.

Examples

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>