i am getting Uncaught TypeError: recipes.map is not a function. what could be the problem?
`
recipes = [{ id: 1, title: "Foo", imageUrl: "http://dooneyskitchen.com/palm-nut-ehuru-egusi-soup/", description: "Boil your meat, fry your egusi, add palm oil and season",}, {id: 2, title: "Foo@", imageUrl: "http://dooneyskitchen.com/palm-nut-ehuru-egusi-soup/", description: "Boil your meat, fry your egusi, add palm oil and season",}]
recipes.map( recipe => {
return(
<HomeCard recipe={recipe} key={recipe.id} />
)
}`
You can't .map() on object
okay i think i left out some thing in the recipes object
Обсуждают сегодня