UNPKG

@render-props/throttle

Version:

A state container which limits the frequency with which setState can be called using `requestAnimationFrame`.

49 lines (48 loc) 1.67 kB
{ "version": "0.1.18", "main": "cjs/index.js", "module": "es/index.js", "jsnext:main": "es/index.js", "esnext": "es/index.js", "scripts": { "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\"" }, "author": "Jared Lunde <jared@tessellate.io> (https://github.com/jaredlunde)", "sideEffects": false, "analyze": true, "license": "MIT", "name": "@render-props/throttle", "devDependencies": { "@stellar-apps/babel-preset-es": "^1.0.4", "@stellar-apps/babel-preset-react": "^1.0.1", "prettier": "^1.10.2" }, "dependencies": { "@babel/runtime": "^7.4.0", "raf": "^3.4.1" }, "peerDependencies": { "prop-types": ">= 15.6.0", "react": ">= 16.0.0" }, "repository": { "type": "git", "url": "https://github.com/jaredlunde/render-props/tree/master/packages/throttle" }, "keywords": [ "react", "render props", "function as child", "hoc", "state container", "throttle", "requestAnimationFrame" ] }