When ever I enter a business name, in this case Panda Express, I keep getting this error:
React is telling you that it can’t call the
.map() iterator on an
In this case, it looks like your undefined object is the
businesses prop of the
If I had to take a guess, I’d say your request to Yelp is failing to return with a status of
200 OK and causing issues with the state of the App component.
Difficult to be sure without the code, though.