@piplup/utils
Version:
A collection of utility hooks and functions crafted to power up the packages within Piplup.
9 lines (8 loc) • 341 B
TypeScript
import * as React from 'react';
/**
* Hook that combines multiple refs into a single ref callback.
*
* @param refs - List of refs to be combined.
* @returns Combined ref callback function or null if all refs are undefined.
*/
export declare function useForkRef<T>(...refs: Array<React.Ref<T> | undefined>): null | React.RefCallback<T>;