@render-props/scrollable

v0.1.13
A state container which provides an interface for listening to the scroll event of its child component and providing valuable data about direction, distance, and more. It also provides convenience functions for scrollTo with optional animation.
react render props function as child hoc state container scroll onscroll scroller scroll animation and 1 more...

build

yarn run build:es && yarn run build:commonjs

build:es

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

build:commonjs

rm -rf commonjs && cross-env NODE_ENV=production cross-env BABEL_ENV=commonjs babel src --out-dir commonjs && npm run prettier:commonjs

build:publish

yarn run build && yarn publish --access public

build:config

atom ./rollup.config.js:85:32

atom

atom ./

watch:es

cross-env NODE_ENV=development cross-env 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:commonjs

prettier --single-quote --no-semi --no-bracket-spacing --trailing-comma es5 --write "commonjs/**/*.js"
npm i @render-props/[email protected]

Metadata

  • MIT
  • Whatever
  • Jared Lunde
  • released 8/20/2018

Downloads

Maintainers