Watch an element's size and position with ResizeObserver
ResizeObserver
const [ ref, contentRect ] = useMeasure()