Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/react-hook-form.ts>UseFieldArrayReplace

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
type alias UseFieldArrayReplace
import { type UseFieldArrayReplace } from "https://deno.land/x/netzo@0.5.63/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>