Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Як оновити стан у useState для додавання товару в кошик?
setCart([...cart, newItem]);
cart = cart.concat(newItem);
cart.push(newItem);
setCart(cart.add(newItem));
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!