https://github.com/paperclover/sync-reducer
syncs a reducer to local storage
https://github.com/paperclover/sync-reducer
Last synced: 2 months ago
JSON representation
syncs a reducer to local storage
- Host: GitHub
- URL: https://github.com/paperclover/sync-reducer
- Owner: paperclover
- License: mit
- Created: 2019-08-07T23:12:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-27T21:32:59.000Z (almost 6 years ago)
- Last Synced: 2025-03-15T04:47:02.733Z (3 months ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# sync-reducer
> Creates a reducer with the same properties of the passed reducer, but syncs it's value to
> a Storage like localStorage## Install
```sh
npm install sync-reducer
```## Usage
```js
import syncReducer from 'sync-reducer';function reducer(state, action) {
return state;
}export default syncReducer(reducer, 'reducer-state');
```