So I’ve been wanting to build a quite simple e-commerce website using react and I’ve run into this bug where whenever I would click the add to cart button it would give an error saying that the basket is undefined(I’ve tried to figure out why it would become undefined but just cant). I’ve looked everywhere for answers but can’t find any. Any help would be much appreciated.

Github Repo

Live Link

On the production build it would only appear as a blank screen

r/webdev - Stuck with this bug, that I for the love of god cant resolve



Source link

Write A Comment