/use-bool

A shortcut for React.useState<boolean>.

Primary LanguageJavaScriptMIT LicenseMIT

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