A React higher-order component that invokes a callback in a wrapped component via requestAnimationFrame
Implement a startAnimation method (this.props.startAnimation) to restart the rAF loop after endAnimation has been called.
startAnimation
this.props.startAnimation
endAnimation