Effects run after rendering has produced DOM updates. useLayoutEffect runs after the DOM update and before paint, not during render.