UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

14 lines 537 B
import type { RefElementOrNull } from "../utils/utils"; /** * useRefElement hook for React * Helps bridge gap between callback ref and state * Manages the element called with callback ref api using state variable * @returns {[RefElementOrNull, (element: HTMLElementOrNull) => void]} * @see https://react-hooks.org/docs/useRefElement */ declare function useRefElement<T>(): [ (refElement: RefElementOrNull<T>) => void, RefElementOrNull<T> ]; export { useRefElement }; //# sourceMappingURL=useRefElement.d.ts.map