rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
14 lines • 487 B
TypeScript
import type { RefCallback } from "react";
import type { PossibleRef } from "../utils/utils";
/**
* useForkRef
* Joins refs together and returns a combination of the two as a new ref
*
* @param refA
* @param refB
* @returns MutableRefObject
* @see https://react-hooks.org/docs/useForkRef
*/
declare function useForkRef<T>(refA: PossibleRef<T> | null, refB: PossibleRef<T> | null): RefCallback<T> | null;
export { useForkRef };
//# sourceMappingURL=useForkRef.d.ts.map