@Yup03
Posted
Great Challenge @kabir-afk
At first sight, contribution i can make is that when one click on the button after invoking addToCart
, It will be a good behavior to set back numberOfItems
to 0
like the following:
<button
className="addToCart"
onClick={() => {
props.addToCart({ numberOfItems })
setNumberOfItems(0)
}}
>
@kabir-afk
Posted
@Yup03 I forgot what I wrote π π . . . but I'll definately look into itπ