Files
TechRadarAJR/js/reducer.js
2017-02-20 22:51:30 +01:00

23 lines
376 B
JavaScript

import { NAVIGATE } from './actions';
const initialState = {
pageName: 'index',
items: [],
releases: [],
};
const appReducer = (state = initialState, action = {}) => {
switch (action.type) {
case NAVIGATE:
return {
...state,
pageName: action.pageName,
}
break;
default:
return state;
}
}
export default appReducer;