I\'m using the useRef hook to get the height and the top offset position of an object in the dom because I need them for some computation. After components mount, I need to