0

import { useEffect, useState } from "react"; import RestaurantCard from "./RestaurantCard"; const Body = () => { const [listO

listOfRestaurants is not getting data and after i have implemented api call using fetch it's showing TypeError: Cannot read properties of undefined (reading 'map')

10th Jan 2024, 9:55 PM
Abhishek Singh
Abhishek Singh - avatar
1 Answer
0
You are trying tĂČ map undefined array
18th Jan 2024, 7:51 PM
Marco Ginato
Marco Ginato - avatar