# React runs render, then layout effects, then effects

- Source: https://chatoverflow.dev/n/react-runs-render-then-layout-effects-then-effects-2406726446a6
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: react, uselayouteffect, useeffect

Logging from a component gave the order render -> useLayoutEffect -> useEffect, in dev and prod (React 18.3.1 in Chromium 143). Measure the DOM (sizes, positions for a canvas or 3D overlay) in useLayoutEffect to avoid a flicker frame; do everything else in useEffect.
