Created
April 26, 2017 09:00
-
-
Save anonymous/dcc7a01ff7fe14e87b6968e8726b50a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Command line commands | |
| // To initialize | |
| Type "npm init -y" in command line. | |
| # This initializes npm and creates a package.json file, listing all the dependencies. | |
| // To initialize React | |
| Type "npm install -save react react-dom" | |
| # This will initailize react and creates all the dependencies. | |
| // To initialize Webpack | |
| Type "npm install --save-dev webpack" | |
| # Installs webpack and its dependecies | |
| // To initialize Babel | |
| 1. Type "npm install --save-dev babel-core babel-loader" | |
| 2. Type "npm install --save-dev babel-preset-react babel-preset-es2016" | |
| # Installs babel which acts a transpiler to translate jsx into es2016 javascript. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment