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

x/netzo/deps/@dnd-kit/utilities.ts>useNodeRef

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function useNodeRef
import { useNodeRef } from "https://deno.land/x/netzo@0.4.87/deps/@dnd-kit/utilities.ts";

Parameters

optional
onChange: (newElement: HTMLElement | null, previousElement: HTMLElement | null) => void

Returns

readonly [import("https://esm.sh/v128/@types/react@18.2.38/X-ZS9yZWFjdCxyZWFjdC1kb20/index.d.ts").MutableRefObject<HTMLElement | null>, (element: HTMLElement | null) => void]