Watch an element's size and position with ResizeObserver

const [ ref, contentRect ] = useMeasure()