ducks
Version:
🦆🦆🦆 Ducks is a Reducer Bundles Manager that Implementing the Redux Ducks Modular Proposal with Great Convenience.
17 lines • 403 B
JavaScript
import * as types from './types.js';
const initialState = {
status: false,
};
const reducer = (state = initialState, action) => {
switch (action.type) {
case types.TOGGLE:
return ({
...state,
status: !state.status,
});
default:
return state;
}
};
export default reducer;
//# sourceMappingURL=reducers.js.map