Merge several refs, callback or object, into one.
This is custom React hooks, you need to follow the Basic Rules when you use it.
One element is read by two refs.
const useMergedRef = <T>(...refs: (Ref<T> | undefined)[]) =>
(node: T | null) => void