Passed props being undefined in functional component

前端 未结 0 1303
说谎
说谎 2020-12-03 08:44

I have my App.js(parent) and restaurantArray.js(child) and passed the props in properly but React is returning that restaurants is undefined. I\'ve also tried destructuring

相关标签:
回答
  • 消灭零回复
提交回复
热议问题