@react-hook/window-size

v2.2.4
React hooks for updating components when the size of the `window` changes.
react react hook hook react hooks hooks window size window size hook window width window width hook and 16 more...

build

lundle build

check-types

lundle check-types

dev

lundle build -f module,cjs -w

format

prettier --write "{,!(node_modules|dist|coverage|throttled)/**/}*.{ts,tsx,js,jsx,md,yml,json}" && prettier --write "throttled/{,!(node_modules|dist|coverage)/**/}*.{ts,tsx,js,jsx,md,yml,json}"

lint

eslint . --ext .ts,.tsx

prepublishOnly

npm run lint && npm run test && npm run build && npm run format

test

jest

validate

lundle check-types && npm run lint && jest --coverage
npm i @react-hook/[email protected]

Metadata

  • MIT
  • Whatever
  • Jared Lunde
  • released 6/6/2020

Downloads

Maintainers