Cannot map over array in React

后端 未结 0 1488
北恋
北恋 2021-01-06 19:01

I\'m passing an array (data) to the component via a prop, but then I can\'t map over data.

const Component = ({ data }) => {

  console.log(data);

  const         


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