# hexi-hooks

> React hooks utils created by Hexi

Latest version **1.0.1** (published 2022-09-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install hexi-hooks
pnpm add hexi-hooks
yarn add hexi-hooks
bun add hexi-hooks
```

## 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.0.1 |
| Published | 2022-09-18 |
| First published | 2022-09-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Hexi |
| Maintainers | hexi1997 |
| Keywords | hooks, react |

## Links

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

## 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.0.1 (latest) — 2022-09-18
- 1.0.0 — 2022-09-18

## README

# hexi-hooks

## Getting Started

Install dependencies,

```bash
$ yarn add hexi-hooks
```

## Demo

```tsx
import React from 'react';
import hooks from 'hexi-hooks';
const { useTimeCountDown } = hooks;
const endDate = new Date('2022-12-16 11:00:00 GMT+0800').getTime();
export default () => {
  const { leftDays, leftHours, leftMinutes, leftSeconds, isOutOfDate } = useTimeCountDown(
    endDate,
    1000,
  );
  return (
    <div>
      <div>
        {leftDays} days {leftHours} hours {leftMinutes} mins {leftSeconds} secs left
      </div>
      <br />
      <div>is out of date: {String(isOutOfDate)}</div>
    </div>
  );
};
```

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