@plq/use-persisted-state
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -0,1 +1,3 @@ | ||
### [0.2.2](https://github.com/Akurganow/use-persisted-state/compare/v0.2.1...v0.2.2) (2020-05-29) | ||
### [0.2.1](https://github.com/Akurganow/use-persisted-state/compare/v0.2.0...v0.2.1) (2020-05-29) | ||
@@ -2,0 +4,0 @@ |
{ | ||
"name": "@plq/use-persisted-state", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "useState hook with persistance in storage", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -5,2 +5,11 @@ # usePersistedState | ||
## Features | ||
- Persist the state to `localStorage`, `sessionStorage` or anything else that implements `getItem`, `setItem` and `removeItem` | ||
- State changes are syncing between tabs or windows | ||
- The state factory takes as many keys as needed, so you don't have to call the factory for each variable | ||
- Written with the Typescript, the defenitions go with the library | ||
- No dependencies | ||
- Only 645B (minified and gziped) | ||
## Example | ||
@@ -7,0 +16,0 @@ |
21787
110