@react-hook/debounce

v1.0.8
A React hook for debouncing setState and other callbacks
react react hook hook react hooks hooks debounce debounce hook react hook debounce

build

npm run build:cjs && npm run build:es && npm run build:types

build:cjs

babel src -d dist/cjs -x .ts --ignore "**/*.test.ts","**/test.ts" --delete-dir-on-start

build:es

babel src -d dist/es -x .ts --env-name es --ignore "**/*.test.ts","**/test.ts" --delete-dir-on-start

build:types

tsc -p tsconfig.json -d --outDir dist/es --emitDeclarationOnly && mkdir -p dist/cjs && cp -R dist/es/**.d.ts dist/cjs && rimraf dist/**/*.test.d.ts

check-types

tsc --noEmit -p tsconfig.json

format

prettier --write "**/*.{ts,js,md,yml,json,babelrc,eslintrc,prettierrc}"

lint

eslint . --ext .ts

prepublishOnly

npm run validate && npm run build && npm run format

test

jest

validate

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

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 11/26/2019

Downloads

Maintainers