Skip to content

khanshamim/react-redux-basic-app

Repository files navigation

react-redux-basic-app

Install Dependencies Let’s install react and react-dom: npm install --save react npm install --save react-dom

Then, we need to install the core Redux library: npm install --save redux

We also need to install another library when using Redux with React: npm install --save react-redux

For our devDependencies, we need to install Babel stuff to use ES6 features in React, Webpack to apply the Babel preprocessing, and Webpack Dev Server to host our application.

npm install --save-dev babel-loader babel-core babel-preset-env babel-preset-react webpack webpack-dev-server html-webpack-plugin

Our package.json now looks like this:

{ "name": "bookcards", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo "Error: no test specified" && exit 1" }, "author": "", "license": "ISC", "dependencies": { "react": "^15.6.1", "react-dom": "^15.6.1", "react-redux": "^5.0.5", "redux": "^3.7.1" }, "devDependencies": { "babel-core": "^6.25.0", "babel-loader": "^7.1.1", "babel-preset-env": "^1.5.2", "babel-preset-react": "^6.24.1", "html-webpack-plugin": "^2.29.0", "webpack": "^3.0.0", "webpack-dev-server": "^2.5.0" } }