Starts an animation loop after component is mounted, and stops it after component is unmounted.
A callback that is called in an animation frame.
useAnimationFrame
Starts an animation loop after component is mounted, and stops it after component is unmounted.