# @patomation/usetoggle

> React Hooks use Toggle

Latest version **1.2.0** (published 2019-09-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install @patomation/usetoggle
pnpm add @patomation/usetoggle
yarn add @patomation/usetoggle
bun add @patomation/usetoggle
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2019-09-11 |
| First published | 2019-08-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Patrick Kelly |
| Maintainers | patomation |
| Keywords | react, hooks, use, toggle, use-toggle, usetoggle, useToggle |

## Links

- npm: https://www.npmjs.com/package/@patomation/usetoggle
- Repository: https://github.com/patomation/useToggle
- Homepage: https://github.com/patomation/useToggle#readme
- Issues: https://github.com/patomation/useToggle/issues
- npm.io page: https://npm.io/package/@patomation/usetoggle

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^16.9.0
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.5.5

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2019-09-11
- 1.0.1 — 2019-08-29
- 1.0.0 — 2019-08-29

## README

React Hooks use Toggle


Installation:
```
npm install --save useToggle
```
or
```
yarn add useToggle
```

Usage:
```javascript
import useToggle from 'useToggle';

const MyComponent = () => {

  const [ value, toggleValue ] = useToggle(false)

  return (
    <button onClick={toggleValue}>
      {value}
    </button>
  )

}
```

---
_Source: https://npm.io/package/@patomation/usetoggle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
