Files
2021-02-15 21:20:16 +08:00

37 lines
1.1 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;