In Redux, if I am using say a data structure as follows:
{
products: [
{id:1, name:'tv', description:'A color Sony TV', cost:1000},
{id:2, name:'remote control', description:'A black compact Remote Control', cost: 999}
],
shoppingCart: [],
checkoutCart: []
}
And I use the Redux combineReducers
combineReducers({products, shoppingCart, checkoutCart})
If I wanted to copy the shopping Cart
data into the checkoutCart
say on a click event, where would I do so / or should I do so ?