You can run npm install
to install dependencies. which will install all dependencies mentioned below.
- Initialize npm: creates package.json and npm config
-
npm init
- Browserify: allow browser to use npm modules
-
npm install -g browserify
// globally installs browserify - Babel: compile ES6/JSX into browser readable javascript.
-npm install --save babel-cli
- Babelify: allow Babel to use Babel with Browserify
-
npm install --save babelify
- Babel-preset-react: Tell babel how to compile JSX
-
npm install --save babel-preset-react
- Watchify: look for changes, works with browserify
-
npm install --save watchify
- React: react facebook library
-
npm install --save react
- React-Dom: react dom manupulation library
-
npm install --save react-dom
To build and watch changes run this command:
npm start