Starts an animation loop after the component is mounted and stops it when the component is unmounted.
A callback that is invoked on each animation frame.
useAnimationFrame
Starts an animation loop after the component is mounted and stops it when the component is unmounted.