Forked from
KSZK / DevTeam / kszkepzes / old / kszkepzes-frontend
331 commits behind the upstream repository.
-
Tamás Szabó authoredTamás Szabó authored
To find the state of this project's repository at the time of any of these versions, check out the tags.
NewsReducer.js 238 B
import { GET_NEWS } from '../actions/types';
const INITIAL_STATE = [];
export default (state = INITIAL_STATE, action) => {
switch (action.type) {
case GET_NEWS:
return action.payload;
default:
return state;
}
};