UNPKG

react-principal

Version:

A state management with react context for apps which using hooks.

10 lines 332 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createReducer = void 0; exports.createReducer = (handlers) => (state, action) => { if (!handlers.hasOwnProperty(action.type)) { return state; } return handlers[action.type](state, action); }; //# sourceMappingURL=reducer.js.map