blackbirdchess-docker-dev/react/src/store/Feature1/FeatureReducer.js
2020-11-16 17:14:34 +01:00

17 lines
319 B
JavaScript

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;
}
};