xxxxxxxxxx
case ADD_ITEM :
return {
state,
arr: [state.arr, action.newItem]
}
OR
case ADD_ITEM :
return {
state,
arr: state.arr.concat(action.newItem)
}
xxxxxxxxxx
case ADD_ITEM :
return {
state,
arr: [state.arr, action.newItem]
}