Measuring and repositioning before paint lets the user see the tooltip in its final position.
Question 17 of 20 in useLayoutEffect Quiz