I\'m wondering if you could help me with this problem if possible. I am trying to delete an item from the Redux state. I have passed in the ID of the item that the user clicks v
You can use Object.assign(target, ...sources) and spread all the items that don't match the action id
Object.assign(target, ...sources)
case "REMOVE_ITEM": { return Object.assign({}, state, { items: [...state.items.filter(item => item.id !== action.id)], }); }