how to add to an array of objects in redux code example
Example: redux append to an array
case ADD_ITEM :
return {
...state,
arr: [...state.arr, action.newItem]
}
case ADD_ITEM :
return {
...state,
arr: [...state.arr, action.newItem]
}