UNPKG

@figliolia/react-hooks

Version:

A small collection of simple React Hooks you're probably rewriting on a regular basis

7 lines (6 loc) 236 B
import type { RefObject } from "react"; import { type Dimensions } from "@figliolia/size-observer"; export declare const useNodeDimensions: <T extends HTMLElement>() => [ ref: RefObject<T>, dimensions: Dimensions | undefined ];