UNPKG

@googleforcreators/react

Version:

A tiny wrapper package that re-exports React and provides additional utilities and custom hooks.

12 lines 519 B
import type { ForwardedRef, MutableRefObject, RefCallback } from 'react'; /** * Synchronize multiple refs to a single ref * * This is used when receiving a forwarded ref, but also needing an internal one. * * @param refs List of refs to synchronize * @return A callback to be used as `ref` for element. */ declare function useCombinedRefs<T>(...refs: Array<RefCallback<T> | MutableRefObject<T> | ForwardedRef<T>>): (node: T) => void; export default useCombinedRefs; //# sourceMappingURL=useCombinedRefs.d.ts.map