I've gotten rusty on Redux, and did not comment my code well. I looked in the console using console.log and I can't figure out what is going on.
I also looked at a cheat sheet here.
I've removed other cases to simplify the concerns.
const Articles = (state, action) => {
console.log('state', state);
let newState = { ...state }; // here?
console.log('newState', newState);
switch(action.type) {
case "updateArticles":
newState.articles = action.articles;
break;
}
return newState;
};