An open API service indexing awesome lists of open source software.

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

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');
```