When ever I enter a business name, in this case Panda Express, I keep getting this error:
Hi there.
React is telling you that it can’t call the .map()
iterator on an undefined
object.
In this case, it looks like your undefined object is the businesses
prop of the BusinessList
component.
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.