@react-hook/window-size

v0.1.0
React hooks for monitoring changes to the size of the window.
react react hook hook react hooks hooks window size window width window height window and 5 more...

build

yarn build:es && yarn build:cjs && yarn build-throttled:es && yarn build-throttled:cjs

build:es

rimraf dist/es && mkdir -p dist/es && cross-env NODE_ENV=production BABEL_ENV=es babel src/index.js --out-file dist/es/index.js

build:cjs

rimraf dist/cjs && mkdir -p dist/cjs && cross-env NODE_ENV=production BABEL_ENV=cjs babel src/index.js --out-file dist/cjs/index.js

build-throttled:es

rimraf throttled/es && mkdir -p throttled/es && cross-env NODE_ENV=production BABEL_ENV=es babel src/throttled.js --out-file throttled/es/index.js

build-throttled:cjs

rimraf throttled/cjs && mkdir -p throttled/cjs && cross-env NODE_ENV=production BABEL_ENV=cjs babel src/throttled.js --out-file throttled/cjs/index.js

watch:es

rimraf dist/es && cross-env NODE_ENV=production BABEL_ENV=es babel src -w --out-dir dist/es

prepublishOnly

yarn build
npm i @react-hook/[email protected]

Metadata

  • MIT
  • Whatever
  • Jared Lunde
  • released 3/24/2019

Downloads

Maintainers