# recoil-localstorage-selector

> ``` yarn add recoil-localstorage-selector ```

Latest version **0.0.3** (published 2020-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install recoil-localstorage-selector
pnpm add recoil-localstorage-selector
yarn add recoil-localstorage-selector
bun add recoil-localstorage-selector
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2020-07-07 |
| First published | 2020-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Simon Madsen |
| Maintainers | simonsmadsen |

## Links

- npm: https://www.npmjs.com/package/recoil-localstorage-selector
- npm.io page: https://npm.io/package/recoil-localstorage-selector

## Recent versions

- 0.0.3 (latest) — 2020-07-07
- 0.0.2 — 2020-07-07
- 0.0.1 — 2020-07-07

## README

# Recoil Localstorage Selector

## Installation

```
yarn add recoil-localstorage-selector
```

## Usage

```
import localStorageSelector from 'recoil-localstorage-selector'

const defaultValue = 0

const countAtom = atom({
  key: 'countState',
  default: defaultValue,
})

const countPersist = localStorageSelector(
  countAtom,  'countPersistState', defaultValue
)
```
Function description:
```
localStorageSelector(atom, selectorKey, defaultValue)
```

## Contributing
Pull requests are welcome.

## License
[MIT](https://choosealicense.com/licenses/mit/)

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