Skip to main content
Module

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

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Latest
type alias UseFieldArrayMove
import { type UseFieldArrayMove } from "https://deno.land/x/netzo@0.5.119/deps/react-hook-form.ts";

Move field array by supplying from and to index

Examples

Example 1

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