O'Reilly logo

Mastering React by Ryan Vice, Adam Horton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preparing the development environment

Before we start coding, we'll need to get our development tools installed and configured. This involves installing some Node modules and writing the Webpack configuration file.

Installing Node and its dependencies

Node.JS is needed to run Webpack automation, the Webpack dev server, and the JSON mock server. Head over to Nodejs.org and follow the installation instructions for your operating system. You'll also need a terminal to run commands and view the output of Webpack as it runs compilation steps. The Windows terminal is serviceable, but if you install Git for Windows it comes with a better shell called git-bash (which is part of MinGW, a minimalist GNU environment for Windows).

Initialize a Node project by ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required