sync-reducer
v2.0.6
Published
Creates a reducer with the same properties of the passed reducer, but syncs it's value to a Storage like localStorage
Downloads
16
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
npm install sync-reducer
Usage
import syncReducer from 'sync-reducer';
function reducer(state, action) {
return state;
}
export default syncReducer(reducer, 'reducer-state');