# @hyperobjekt/hooks

> This repository contains hooks that are re-used among hyperobjekt projects.

Latest version **1.1.1** (published 2021-07-28) · 0 weekly downloads

## Install

```sh
npm install @hyperobjekt/hooks
pnpm add @hyperobjekt/hooks
yarn add @hyperobjekt/hooks
bun add @hyperobjekt/hooks
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2021-07-28 |
| First published | 2020-10-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | laneolson |

## Links

- npm: https://www.npmjs.com/package/@hyperobjekt/hooks
- npm.io page: https://npm.io/package/@hyperobjekt/hooks

## Recent versions

- 1.1.1 (latest) — 2021-07-28
- 1.1.0 — 2021-07-28
- 1.0.10 — 2020-11-17
- 1.0.9 — 2020-11-09
- 1.0.8 — 2020-10-28
- 1.0.7 — 2020-10-28
- 1.0.6 — 2020-10-28
- 1.0.5 — 2020-10-28
- 1.0.4 — 2020-10-27
- 1.0.3 — 2020-10-27
- 1.0.2 — 2020-10-21
- 1.0.1 — 2020-10-21

## README

# @hyperobjekt/hooks

This repository contains hooks that are re-used among hyperobjekt projects.

## `useDebounce(value, delay)`

This hook is used to reduce re-renders when you have a value that updates many times within a short period of time. Full docs can be found on the [useHooks site](https://usehooks.com/useDebounce/).

## `useDidUpdateEffect(callback, inputs)`

This hook is the same as `useEffect`, but runs only on subsequent updates instead of on mount.

## `useInterval(callback, delay)`

This hook is used to execute a function on a regular interval within a react component.

## `useKeyPress(targetKey)`

Used to capture if a target key is currently pressed. Full docs can be found on the [useHooks site](https://usehooks.com/useKeyPress/).

## `usePrevious(value)`

Used to capture a variables value from the last render. Full docs can be found on the [useHooks site](https://usehooks.com/usePrevious/).

## `useWindowSize()`

Provides the width / height of the window when run within the browser. Full docs can be found on the [useHooks site](https://usehooks.com/useWindowSize/).

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