Please help me. I don\'t know why this piece of code doesn\'t work.
It gives me an error: \"Objects are not valid as a React child (found: object with keys {itemss})
here you go:
return ( {items.map(i) => ( {i.title} )} )
edit: in react, return/render can not have a structure like
{i.title} {i.title} {i.title}
you should wrap them in a or another element. also you JS was wrong which I corrected 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
or another element. also you JS was wrong which I corrected 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复