我是新来的人,我在添加此文件并运行代码时使用reactjs制作了一个小应用程序,它给出了此错误,未显示语法错误。 这是我编写的代码。
count by english count by chinese
08-MAR-19-14-MAR-19 150 286
15-MAR-19-22-MAR-19 150 286 (no data so same as above)
23-MAR-19-30-MAR-19 260 360
应用程序应该运行流畅。thsi is the error I am getting
答案 0 :(得分:0)
我了解的是。您的导入不正确。如果还有另一个,请添加代码以获取更多信息
import React from 'react';//not what you import
import Card from "./Card";
const CardList = ({ robots }) => { //const cardComponent=robots.map((user,i)=>{ return ( // key prop should have something that should not be changed { robots.map((user, i) => { }) } ) }