@bscop/use-bool
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

use-bool

GitHub license npm version CircleCI Status Coverage

A shortcut for React.useState.

Install

npm i @bscop/use-bool

Usage

import useBool from "@bscop/use-bool";

const [state, setTrue, setFalse] = useBool();

Contribute

Read the guidelines.

Run tests

npm test

Coverage

Coverage reports are hosted on codecov.

npm run badge:coverage -- --token=<guid>

Bruno Scopelliti
www.brunoscopelliti.com

Package Sidebar

Install

npm i @bscop/use-bool

Weekly Downloads

33

Version

1.0.1

License

MIT

Unpacked Size

12.5 kB

Total Files

9

Last publish

Collaborators

  • brunoscopelliti