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

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!

主站蜘蛛池模板: 瓦房店市| 开化县| 太原市| 靖江市| 盘山县| 武鸣县| 郯城县| 商丘市| 昂仁县| 阿勒泰市| 云林县| 屏东市| 蓬溪县| 双柏县| 山东| 武穴市| 宜黄县| 许昌市| 平潭县| 芮城县| 报价| 深泽县| 阿尔山市| 金山区| 揭东县| 辽阳市| 富平县| 博客| 合山市| 洛南县| 惠东县| 永登县| 青海省| 黎川县| 吴堡县| 衡阳市| 冕宁县| 许昌县| 清流县| 大名县| 唐河县|