Parse Nested JSON Using Axios and Async/Await
问题 I am trying to fetch data from an api which should return a json object with an array of recipes. I am using React hooks on the front end and Axios to perform the request. The hook runs but I get an error while trying to access the json array from the response. Here's the sample api response: { count: 30, recipes: [objects, ... 29] } and my code to get the recipe response: const fetchRecipes = async () => { try { const recipeData = await Axios.get(api); console.log(recipeData); const recipes