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

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!

主站蜘蛛池模板: 湖北省| 辽阳市| 新田县| 辉县市| 睢宁县| 林芝县| 神农架林区| 三台县| 闽侯县| 凤翔县| 买车| 错那县| 吉安县| 井研县| 湟中县| 汪清县| 满城县| 南平市| 梁平县| 镇巴县| 石楼县| 南京市| 兴文县| 沂源县| 永清县| 新竹县| 昂仁县| 江永县| 洪洞县| 宣汉县| 赣榆县| 保康县| 寻乌县| 内丘县| 博爱县| 乌恰县| 宜宾县| 安泽县| 陆河县| 太保市| 夏津县|