@render-props/rect

v0.1.1
A state container which provides a simple interface for retrieving the bounding client rect of a referenced element. The bounding client rect will update each time the window resizes - a behavior which can be turned off by setting the prop `recalcOnWindow
react render props function as child hoc state container rect domrect getBoundingClientRect size and 3 more...

build

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

build:dist

rm -rf dist && rollup -c

build:es

rm -rf es && cross-env NODE_ENV=production cross-env BABEL_ENV=es babel src --out-dir es

build:commonjs

rm -rf commonjs && cross-env NODE_ENV=production cross-env BABEL_ENV=commonjs babel src --out-dir 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
npm i @render-props/[email protected]

Metadata

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

Downloads

Maintainers