@react-hook/switch

v1.3.2
A React hook for controlling a boolean value with toggle, on, and off callbacks
react react hook react hooks hooks switch toggle toggle hook switch hook react switch hook and 2 more...

build

lundle build --umd-case camel

check-types

lundle check-types

dev

lundle build -f module,cjs -w

format

prettier --write "{,!(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 1/19/2021

Downloads

Maintainers