Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.5.14/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