UNPKG

react-fork-ref

Version:

Maintain multiple refs to a single react element

3 lines (2 loc) 110 B
import { Ref } from "react"; export default function forkRef<T>(...refs: Ref<T>[]): (node: T | null) => void;