MP
Hello, I'm struggling with choose redux and mobx and for now I'm reading your article. IMO there is a bug in your example code: case actionTypes.COMPLETE_TODO: return state.map(todo => { if (todo.id === action.todoId) { return Object.assign({}, todo, {isDone: !todo.isDone}) } return todo }); This action could mark ToDo item as not completed as well. Action type should be called "Toggle" or explicit use "true": {isDone:true}
