layout-hooks

v1.2.3
A set of React Hooks that help make your components responsive, either to their own width, their parent width or the browser width and get realtime dimensions even during CSS transitions.

build

yarn lint && babel src --out-dir dist

start

node dist/index.js

dev

npx babel-node src/index.js

lint

yarn prettier --write --check --config ./.prettierrc "**/*.js" && eslint --fix ./src

test

npx babel-node examples/index.js

_dist:nopublish

echo 'Use `npm run dist` instead of `npm publish`!' && exit 1

_dist:prep

yarn build && cp package.json dist && cp README.md dist

_dist:post

rm -f dist/package.json && rm -f dist/README.md

dist

npm run _dist:prep && npm publish dist && npm run _dist:post

Metadata

  • MIT
  • Whatever
  • Luke Smetham
  • released 4/29/2020

Downloads

Maintainers