@render-props/throttle

v0.1.18
A state container which limits the frequency with which setState can be called using `requestAnimationFrame`.
react render props function as child hoc state container throttle requestAnimationFrame

build

yarn run build:es && yarn run build:cjs

build:es

rimraf es && cross-env NODE_ENV=production BABEL_ENV=es babel src --out-dir es && npm run prettier:es

build:cjs

rimraf cjs && cross-env NODE_ENV=production BABEL_ENV=cjs babel src --out-dir cjs && npm run prettier:cjs

build:publish

yarn run build && yarn publish --access public

edit

atom ./

watch:es

cross-env NODE_ENV=development BABEL_ENV=es babel ./src -w --out-dir es

prettier:es

prettier --single-quote --no-semi --no-bracket-spacing --trailing-comma es5 --write "es/**/*.js"

prettier:cjs

prettier --single-quote --no-semi --no-bracket-spacing --trailing-comma es5 --write "cjs/**/*.js"
npm i @render-props/throttle

Metadata

  • MIT
  • Whatever
  • Jared Lunde
  • released 4/6/2019

Downloads

Maintainers