function MeasureExample() { const wRef = React.useRef(null); return ( Hello, world The above header is {Math.round(wRef.current.getBoundingClientRect().width)}px wide. );}ReactDOM.render(,document.querySelector("div"));