redux-vertical
Version:
Build redux vertically
11 lines • 387 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* creates a handler for handleActions that will map and action and give you a
* simpler interface to work with.
*/
function mapFromAction(mapAction, updater) {
return (state, action) => updater(mapAction(action), state);
}
exports.default = mapFromAction;
//# sourceMappingURL=map-from-action.js.map