React updates the DOM first, then runs layout effects before the browser gets a chance to paint.
Question 6 of 20 in useLayoutEffect Quiz