.
currentLaptopState.macbook_pro[index]
- undefined2) Не надо мутировать стейт (push, pop, splice и тд)
Size: a a a
ei
.
ei
{
...state,
cart: [
...state.cart,
newItem
]
}
.
.
DB
.
ei
Г
DB
OR
.
currentLaptopState.macbook_pro[index]
- undefinedАА
.
ei
console.log(currentLaptopState.mackbook_pro, index)
.