flicker

A brief visible jump where the screen shows one layout and then quickly redraws another.

In more detail

It happens when code measures the DOM after the browser has already painted, for example in useEffect, and then moves an element. Doing the measurement and update in useLayoutEffect lets the user see only the final position.

Related terms

Taught in

References