A ref can hold the DOM element, allowing the layout effect to read measurements from it after React updates the DOM.