Picture a tooltip that should sit above a button. For one frame it shows up at the top of the box, then it jumps into place. The measurement was right.
Source: [Dev.to](https://dev.to/mohsenfallahnjd/useeffect-vs-uselayouteffect-why-the-tooltip-flashes-then-jumps-532k)