React如何循环遍历数组渲染
sonder 小杯

React循环遍历数组渲染问题

1
2
3
4
5
6
7
{
arr.map(item => {
return (
<p>{item.name}</p>
)
})
}
  • 本文标题:React如何循环遍历数组渲染
  • 本文作者:sonder
  • 创建时间:2020-05-09 17:28:56
  • 本文链接:https://sonderss.github.io/2020/05/09/React如何循环遍历数组渲染/
 评论