rooks
Version:
Collection of awesome react hooks
14 lines (13 loc) • 441 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://rooks.vercel.app/docs/hooks/useForkRef
*/
declare function useForkRef<T>(refA: PossibleRef<T> | null, refB: PossibleRef<T> | null): RefCallback<T> | null;
export { useForkRef };