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

Swap field array by supplying from and to index

Examples

Example 1

<button type="button" onClick={() => swap(0, 1)}>swap</button>
definition: (indexA: number, indexB: number) => void