0👍
✅
You can use state.todos.splice(state.todos.findIndex(original => todo.id === original.id), 1, todo)
instead of .map()
Source:stackexchange.com