README
@solid-primitives/raf
Creates a primitive to support requestAnimationFrame.
Installation
npm install @solid-primitives/raf
# or
yarn add @solid-primitives/raf
How to use it
const [running, start, stop] = createRAF(() => console.log('hi')));
start();
Demo
You may view a working example here: https://codesandbox.io/s/solid-create-raf-czd1e?file=/src/index.tsx
Changelog
Expand Changelog
0.0.100
Initial release ported from https://github.com/microcipcip/vue-use-kit/blob/master/src/functions/useRafFn/useRafFn.ts.
1.0.6
Released official version with CJS and SSR support.
1.0.7
Updated to Solid 1.3, switched to peerDependencies