官术网_书友最值得收藏!

Initializing our components to build on top off

Whenever you're building your project, you should strive to keep the top-level component, which is src/App.js in our case, as simple as possible and keep as little code in it as you possibly can. In our case, we're just going to remove everything (similar to the work we did in the previous chapter, Chapter 1, Introducing Create React App 2) and replace it with a simple replacement header and not much else:

import React from 'react';
import './App.css';

const App = () => (
<div className="App">
<h2>Todoifier</h2>
</div>
);

export default App;

We'll also want to remove everything from App.css, since we're taking a blank-slate approach with this project as well!

主站蜘蛛池模板: 裕民县| 宿迁市| 寿光市| 陆良县| 库车县| 旬阳县| 随州市| 永和县| 鄯善县| 阳春市| 九江县| 关岭| 木兰县| 汉中市| 镇雄县| 安福县| 浪卡子县| 南川市| 栾城县| 平顶山市| 兴海县| 莆田市| 雷山县| 高邑县| 玉屏| 木里| 会宁县| 萍乡市| 冷水江市| 巴青县| 汤原县| 漳平市| 岐山县| 芒康县| 三亚市| 楚雄市| 区。| 宜川县| 宜良县| 延长县| 邹城市|