Effects run after rendering has produced DOM updates. useLayoutEffect runs after the DOM update and before paint, not during render.
Question 15 of 20 in useLayoutEffect Quiz