# use-previous

> React hook for remembering previous value.

Latest version **1.2.0** (published 2023-01-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install use-previous
pnpm add use-previous
yarn add use-previous
bun add use-previous
```

## 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 | 2023-01-31 |
| First published | 2018-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Maintainers | andarist |

## Links

- npm: https://www.npmjs.com/package/use-previous
- Repository: https://github.com/Andarist/use-previous
- Homepage: https://github.com/Andarist/use-previous#readme
- Issues: https://github.com/Andarist/use-previous/issues
- npm.io page: https://npm.io/package/use-previous

## Dependencies (1)

- [use-isomorphic-layout-effect](https://npm.io/package/use-isomorphic-layout-effect.md) ^1.1.0

## Recent versions

- 1.2.0 (latest) — 2023-01-31
- 1.1.0 — 2020-10-26
- 1.0.0 — 2019-03-16
- 0.1.0 — 2018-10-29

## README

# use-previous

React hook for remembering previous value. [Written by React team.](https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state)

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