javascript – useLocation state is coming null

I’m trying to debug my app. It’s a simple app, where it takes random api images from spoonacular, then like tinder, you either press “Yah” or “Nah”. When “Yah” is pressed, it pushes up to an array, and it is supposed to display that array in the Checkout component. I’ve been trying different methods but … Read more