Hi i am learning react with redux and i don't know how to put table inside items.
This is my reducer:
case FETCH_CART_PRODUCTS:
return {
...state ,
items: action.payload
}
case PURCHASE:
return {
...state,
orders: action.payload
};
case FETCH_ORDERS:
return {
...state,
orders: action.payload
}
case TABLE_NUMBER:
return {
...state,
table: action.payload
}
default:
return state;
} }
Thank you for answers!