We just learned the basics about creating a Hello World app in ReactJS, so we will use this exercise to re-do what we just learned (and add some style, to make our UX/UI classmates happier).
- Fork this repo
- Clone this repo
-
Upon completion, run the following commands
git add . git commit -m "done" git push origin master
Let's start with the basics:
- Inside
starter-code/
runnpm install
. - Create the folders you will need for the project:
dist/
andsrc/
. - Create an
index.html
file inside ofpublic/
, where you will have the entry point of the application.
starter-code/
├── dist/
├── package-lock.json
├── package.json
├── public/
│ ├── images
│ │ └── ...
│ └── index.html
├── src/
└── webpack.config.js
You are ready to start creating your React app. First, add the packages needed. And then create index.js
and App.js
files inside the src/
folder.
$ npm install react@16.3.2 and react-dom@16.3.2.
Finally, let's create our landing page. Create an App.css
in src/
. In the public
folder, you will find all the assets you need to recreate the following landing page:
For now, don't worry about creating more than one component, we will cover that in the following lessons!