- 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!
推薦閱讀
- ASP.NET Core:Cloud-ready,Enterprise Web Application Development
- Implementing Modern DevOps
- 從零開始:數字圖像處理的編程基礎與應用
- FreeSWITCH 1.8
- 算法零基礎一本通(Python版)
- Designing Hyper-V Solutions
- Jupyter數據科學實戰
- Scala程序員面試算法寶典
- Clojure Reactive Programming
- 計算機應用基礎實踐教程
- Python圖形化編程(微課版)
- Machine Learning With Go
- 創意UI Photoshop玩轉移動UI設計
- 基于MATLAB的控制系統仿真及應用
- Backbone.js Patterns and Best Practices