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

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!

主站蜘蛛池模板: 吉林市| 乌什县| 阿坝| 大同市| 应用必备| 盐源县| 诸城市| 门源| 武隆县| 南昌市| 伊吾县| 黄梅县| 准格尔旗| 青州市| 桂林市| 紫云| 开化县| 八宿县| 阿拉善盟| 克东县| 秀山| 龙井市| 安义县| 寻乌县| 荣成市| 濮阳市| 乐山市| 重庆市| 曲靖市| 会宁县| 法库县| 湖口县| 六安市| 兴化市| 阳高县| 饶河县| 靖州| 陇南市| 社旗县| 临夏市| 边坝县|