A custom react hook to make it easy to create game loops in React.
function useLoop(onUpdateCallback: (delta: number) => void, deps: React.DependencyList = []): void;
Based on Loop
import { useLoop } from 'animare/react'; function MyComponent() { useLoop(delta => { // do something }, []);}