paint

The rendering stage that records how to fill in each box's pixels: text, colours, borders, shadows and images.

In more detail

Paint comes after layout and before compositing. Changing a colour or background triggers a repaint but not layout, while changing transform or opacity can skip both.

Example

useLayoutEffect runs before this paint, so its changes are never seen half-done; useEffect normally runs after it.

Related terms

Taught in

References