- Support multiple observer via array of ref as an argument of
useResizeObserver(arrayOfRefs)
. NeeduseMemo()
to memoize the array before passing to the hook.
useResizeObserver(arrayOfRefs)
. Need useMemo()
to memoize the array before passing to the hook.