- npm init
- npm install react --save // you can install specific version like react@0.14.3
- npm install react-dom --save // you can install specific version like react-dom@0.14.3
//install dev dependencies
// babel is compiler which will translate es6 to es5 so the browser can read it
- npm install --save-dev babel-loader babel-core babel-preset-es2015 babel-preset-react
- install babel-preset-stage-0 --save-dev
- npm install webpack webpack-dev-server --save-dev
- npm install eslint-plugin-react --save-dev
//you can isntall webpack as global so you wont have to do previous step
// like npm install webpack -g
Define presets in .babelrc
Define object in webpack.config.js
Define .eslintrc
Steps:
Define presets in .babelrc Define object in webpack.config.js Define .eslintrc