UNPKG

usehooks-ts

Version:

React hook library, ready to use, written in Typescript.

10 lines 252 B
interface Size { width: number; height: number; } declare function useElementSize<T extends HTMLElement = HTMLDivElement>(): [ (node: T | null) => void, Size ]; export default useElementSize; //# sourceMappingURL=useElementSize.d.ts.map