[更新]简单的官方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,36 @@
import logo from './logo.svg';
import List from "./List"
import './App.css';
function App() {
return (
<div className="App">
<List title='这是一个列表组件' listArr={
[
{id: '1', title: '掉队风险VS炸裂财富未来10年你必须跟上哪些赚钱新规则'},
{id: '2', title: '全国省级经营性国有资产集中统一监管比例已超九成'},
{id: '3', title: '茅台还能走多远?'},
{id: '4', title: '日本2020年GDP萎缩4.8% 11年来首次呈现负增长'},
{id: '5', title: '韩国三星重工再获5艘LNG船大单'}
]
}/>
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
<div className="App">这个是一个插入的内容</div>
</header>
</div>
);
}
export default App;