Closed Piero87 closed 4 years ago
You can't with the current array return.
Could change the interface in the next major to:
const {ref, width, height} = useResizeObserver();
Especially, as if #16 is implemented, as you wouldn't want the ref in that case either.
Hi, in this line:
const [ref, width, height] = useResizeObserver();
How can I remove the width?