2.0.6 • Published 4 years ago

sync-reducer v2.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

sync-reducer

Creates a reducer with the same properties of the passed reducer, but syncs it's value to a Storage like localStorage

Install

npm install sync-reducer

Usage

import syncReducer from 'sync-reducer';

function reducer(state, action) {
  return state;
}

export default syncReducer(reducer, 'reducer-state');
2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago