Close

9th December 2015

React / Redux Client

Create new package.json ::: npm init -y

Structure:

  • <app_name>
    • dist
      • index.html
      • {bundle.js} //generated by webpack
    • src
      • index.js //app entry point

Webpack:

npm install –save-dev webpack webpack-dev-server

npm install –save-dev babel-core babel-loader babel-preset-es2015 babel-preset-react

React:

npm install –save react react-dom

npm install –save-dev react-hot-loader

npm install –save-dev react-addons-test-utils

CSS:

npm install –save classnames

npm install –save-dev css-loader style-loader autoprefixer-loader

Testing:

npm install –save-dev mocha chai

npm install –save-dev jsdom

npm install –save immutable

npm install –save-dev chai-immutable

Leave a Reply