- Create React App 2 Quick Start Guide
- Brandon Richey
- 116字
- 2021-07-02 12:53:28
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!
推薦閱讀
- 大話PLC(輕松動漫版)
- Facebook Application Development with Graph API Cookbook
- JavaScript前端開發(fā)模塊化教程
- DBA攻堅指南:左手Oracle,右手MySQL
- JavaScript百煉成仙
- Mastering OpenCV Android Application Programming
- Java高并發(fā)核心編程(卷2):多線程、鎖、JMM、JUC、高并發(fā)設計模式
- 信息可視化的藝術(shù):信息可視化在英國
- Java高手真經(jīng)(高級編程卷):Java Web高級開發(fā)技術(shù)
- 從程序員到架構(gòu)師:大數(shù)據(jù)量、緩存、高并發(fā)、微服務、多團隊協(xié)同等核心場景實戰(zhàn)
- Python數(shù)據(jù)分析(第2版)
- Instant QlikView 11 Application Development
- Learning Firefox OS Application Development
- MySQL數(shù)據(jù)庫管理與開發(fā)(慕課版)
- Scala編程實戰(zhàn)(原書第2版)