[更新]简单的官方demo井字棋

This commit is contained in:
唐明明
2021-02-15 21:20:16 +08:00
parent 86a21a6c83
commit 001eb197a2
12 changed files with 212 additions and 15 deletions

View File

@@ -0,0 +1,32 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
* ComponentName: '列表'
*/
import React from "react"
class List extends React.Component {
render() {
return (
<div>
<h3>{ this.props.title || '是一个列表内容' }</h3>
<ul>
{
this.props.listArr.map((item, key) => {
return (
<li key={key}>
{item.title}
</li>
)
})
}
</ul>
</div>
)
}
}
export default List