Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 554 Bytes

02-react-set-up-a-react-environment-with-create-react-app.md

File metadata and controls

16 lines (10 loc) · 554 Bytes

Went though this lesson and everything worked just fine.

Ran create-react-app task-app to create a simple react application and named our folder task-app. Reduced the index.js file.

import React from 'react';
import ReactDOM from 'react-dom';

const App = () => 'Hello World'

ReactDOM.render(<App />, document.getElementById('root'));

We also deleted every other file in the src folder except for our index.js file.