useLayoutEffect
A layout effect runs right after React updates the DOM but before the browser paints the screen.
The more code between render and screen update, the slower the app feels.
The only difference between useEffect and useLayoutEffect is that runs before the browser paints the DOM updates.

In this case without useLayoutEffect the tooltip is jump to get their position
Example code to slows down the rendering
let now = performance.now();
while (performance.now() - now < 100) {
// do nothing for 100ms
}