TypeError: Object is not iterable (cannot read property Symbol(Symbol.iterator))

const [{ basket }] = useStateValue();

im trying to make a add to cart function

please, as you have already been told, you need to give more infos for people to be able to help you

as an exercise on how to ask questions you could try to ask a question on stackoverflow
this is a good guide:

1 Like