Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.
Go to Latest
type alias UseFieldArrayMove
import { type UseFieldArrayMove } from "https://deno.land/x/netzo@0.4.72/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