- 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!
推薦閱讀
- TypeScript Blueprints
- Unity 2020 Mobile Game Development
- Java Web程序設計
- Mastering Python High Performance
- Kinect for Windows SDK Programming Guide
- GameMaker Programming By Example
- 低代碼平臺開發實踐:基于React
- C專家編程
- OpenCV Android Programming By Example
- CodeIgniter Web Application Blueprints
- The Statistics and Calculus with Python Workshop
- 分布式數據庫HBase案例教程
- SQL Server實例教程(2008版)
- iOS Development with Xamarin Cookbook
- Getting Started with JUCE