- Install yarn
- Install a node version manager. Let's use
n
.
sudo yarn global add n
- Install the latest stable NodeJS.
sudo n stable
yarn
yarn start
This will open up your default browser, create a new tab, and go to http://localhost:8080. All changes to your JavaScript files will automagically reload the browser with the new changes.
- Don't use
var
. Useconst
for immutables orlet
for mutables.