Since we used a boilerplate, the most important files are already there. These files are:
package.json
src/index.html
src/index.js
We’re going to be using other CSS and Javascript for our project, so let’s add those files now.
- Create a new file in the
src
directory namedstyle.css
. - Create a new file in the
src
directory namedrenderer.js
.
It’s OK that these are empty now, we’ll add more later. Now, link those files to the main index.html
by adding the following lines of code to index.html
:
-
Add the following code on a new line after the existing
<title></title>
tags.<link rel=stylesheet type="text/css" href="./style.css">
-
Add the following code on a new line directly above
</body>
.<script type="text/javascript" src="renderer.js"></script>
Stuck? Open an issue in the repository for this class and mention @githubteacher for help from one of the GitHub trainers!