2.0.6 • Published 4 years ago
sync-reducer v2.0.6
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');