# react-usestorage-hook

> A nice greeter

Latest version **1.0.0** (published 2022-04-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-usestorage-hook
pnpm add react-usestorage-hook
yarn add react-usestorage-hook
bun add react-usestorage-hook
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-04-20 |
| First published | 2022-04-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | C-J |
| Maintainers | santimedia01 |
| Keywords | typescript, react, localStorage |

## Links

- npm: https://www.npmjs.com/package/react-usestorage-hook
- Repository: https://github.com/santimedia01/react-usestorage-hook
- Homepage: https://github.com/santimedia01/react-usestorage-hook#readme
- Issues: https://github.com/santimedia01/react-usestorage-hook/issues
- npm.io page: https://npm.io/package/react-usestorage-hook

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^18.0.0

## 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.0 (latest) — 2022-04-20

## README

# React useStorage() hook

## Reeact Example Usage

```tsx
import { useStorage } from 'react-usestorage-hook';

function App() {
  // Similar to useState but first arg is key to the value in local storage.
  const [name, setName] = useStorage<string>("name", "Bob");

  return (
    <div>
      <input
        type="text"
        placeholder="Enter your name"
        value={name}
        onChange={(e) => setName(e.target.value)}
      />
    </div>
  );
}
```

Our own implementation of useStorage Hook, inspired by <https://usehooks.com/useLocalStorage>
We will modify some things in a close future.

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