src/app.js
and put the following in it.App
component. So let's create it! Create a file at src/components/App.js
and put the following in it.index.html
file that we are including in our app.js
file. Create a file at src/index.html
and put the following in it.style
tag to help with the sizing of some elements. In the body
, we are adding our container element and our main app bundle.webpack.config.js
and put the following in it.app.js
file and tell everything to output to a build
directory. We run all HTML files though the file loader. This essentially just moves the file to our build
directory. Also, we run our JS files through the babel loader to make sure they are transpiled to code that most browsers these days understand. Lastly, we are including a plugin that will give us pretty output in the console..babelrc
file to configure babel.package.json
file in the scripts
section.