Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Як видалити товар з кошика у стані useState?
cart.pop(id)
setCart(cart.filter(item => item.id !== id))
delete cart[id]
cart.splice(id, 1)
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!