Posted on September 19, 2024 djkjhkf By. Amos Ihunna View Count. 0 const todosReducer = (state = [], action) => { switch (action.type) { case 'ADD_TODO': return [...state, { text: action.payload.text }]; default: return state; } };