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!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.221.136