react-state-animation
react-state-animation
provides a capability to update React component's state by requestAnimationFrame with a simple APIs. The file size is just 4KB (minified).
This works with regular
React
component and
React Canvas
.
View on GitHub
The following React components have state {x: 0} as an initial value. And the state is used in style. Press start to check animation
Start
Stop
Resume
Start
Stop
Resume