Package Exports
- @solid-primitives/raf
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@solid-primitives/raf) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@solid-primitives/raf
Creates a primitive to support requestAnimationFrame.
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
First version of the RAF primitive.