Fullstack part1 |
Fancy Components
fancycomponents.devReact DOM
Now that we’ve learned about component definitions and their instantiation, we can move to the App component’s instantiation. It has been in our application from the start, in the src/index.js file:
src/index.js
import * as React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
... See moreTHE ROAD TO REACT
In the Road to React, we’ll use create-react-app²¹ to bootstrap your application.
Command Line
npx create-react-app hacker-stories
Navigate into your new folder after the setup has finished:
Command Line
cd hacker-stories
In the beginning, everything you need is located in the src/ folder. The main focus lies on the src/App.js file which
... See more