React Terminal Installation
- react, react dom, react router (for React library)
- babel (transforms our JSX and ES6 into JS)
- webpack (transpile our code into a JS)
- css (webpack to transpile our css)
In your directory for your project
- Create package.json by using
npm init Keep clicking enter to confirm changes
- Install react/react-dom
npm install react react-dom react-router-dom —-save
- Install babel
npm install babel-core babel-loader babel-preset-es2015 babel-preset-react —-save-dev
- Install webpack
npm install webpack webpack-dev-server html-webpack-plugin —-save-dev
- Install css/style loader
npm install css-loader style-loader —save-dev