- Fork this repository to your own Github account. You can use this boilerplate for future projects as well, so keep it around!
- Clone your version of the repository to your local machine.
- Once you have the code locally, run
npm install
to install all the dependencies for this project. - Tell React to render something. Open
entry.js
, and modify the line withReactDOM.render
to the following:
ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('placeholder'));
- We'll need to install a server to get things running. Type
npm install webpack-dev-server -g
into your terminal. - Run
webpack-dev-server
to start your application. - Success! You can view your app at http://localhost:8080/webpack-dev-server/index.html