# @twigaeng/react-hooks

> A collection of tiny but useful react hooks

Latest version **1.2.0** (published 2020-10-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @twigaeng/react-hooks
pnpm add @twigaeng/react-hooks
yarn add @twigaeng/react-hooks
bun add @twigaeng/react-hooks
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2020-10-23 |
| First published | 2020-10-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 446.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | joeynimu |
| Maintainers | joeynimu, twiga-eng |

## Links

- npm: https://www.npmjs.com/package/@twigaeng/react-hooks
- Repository: https://github.com/twigaeng/react-hooks
- Homepage: https://github.com/twigaeng/react-hooks#readme
- Issues: https://github.com/twigaeng/react-hooks/issues
- npm.io page: https://npm.io/package/@twigaeng/react-hooks

## Recent versions

- 1.2.0 (latest) — 2020-10-23
- 1.1.0 — 2020-10-21
- 1.0.0 — 2020-10-21

## README

# @twigaeng/react-hooks

> A collection of tiny but useful react hooks

[![NPM](https://img.shields.io/npm/v/@twigaeng/react-hooks.svg)](https://www.npmjs.com/package/@twigaeng/react-hooks) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @twigaeng/react-hooks
```

## Usage

```tsx
import React from 'react'

import { useSalesDays } from '@twigaeng/react-hooks/'

const App = () => {
  const date = new Date();
  const today = date.getDay();
  const tomorrow = today + 1;
  const isTodayASalesDay = useSalesDays([today])
  const isTomorrowASalesDay = useSalesDays([tomorrow])
  return (
    <div>
      <p>Is today a sales days? {isTodayASalesDay.toString()}</p>
      <p>Is tomorrow a sales days? {isTomorrowASalesDay.toString()}</p>
    </div>
  )
}
export default App
```

## License

MIT © [joeynimu](https://github.com/joeynimu)

---

This hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).

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