If the UI must measure layout and update position before the user sees it, useLayoutEffect can avoid visible flicker.
Question 3 of 20 in useLayoutEffect Quiz