chinmay021 / fooodvilla

Namaste React by Akshay Saini
https://fooodvilla.vercel.app
8 stars 4 forks source link

stucked at api call part,getting the json data but cant use it #6

Closed ghost closed 1 year ago

ghost commented 1 year ago

can you help me regarding this.

chinmay021 commented 1 year ago

https://github.com/chinmay021/fooodvilla/blob/main/src/components/Body.js refer to getRestaurant function of this file

ghost commented 1 year ago

i downloaded your code and tried to run the same,still its not working,there is no error in the console,but body is not displaying after the api calls,i have tried akshay saini bhaiyas code too by cloning the repo to my machine,same result,i think its an issue with the api now,can you pls check chapter6 part of the foodvilla app,header and footer is displaying but body is early returning and if i dont write early return its throwing some ugly 'undefined map ' error.

chinmay021 commented 1 year ago

git clone the repository. then npm install then do ntl dev

try running this way

chinmay021 commented 1 year ago

closing this issue as it is resolved