Files
c-cms-legacy/.devcontainer/laradock/react/src/store/Feature1/FeatureReducer.js
2021-08-30 20:37:43 +00:00

17 lines
319 B
JavaScript
Vendored

import * as types from "./FeatureTypes";
const INITIAL_STATE = {};
// Replace with you own reducer
export default (state = INITIAL_STATE, action) => {
switch (action.type) {
case types.GET_DATA_RECEIVE:
return {
...state,
...action.payload
};
default:
return state;
}
};