npm install
npm start
This command will run app in development mode. Open http://localhost:8080 to view it in the browser. Browser will automatically reload if you make changes to the code.
npm run build
This command will creating a minified bundle for you in dist
folder
- React
- webpack with webpack-dev-server
- Webpack plugins and loader: html-webpack-plugin, css-loader and style-loader
- Babel with ES6 and react preset
- and others.
your-app
├── config
│ └── webpack.common.js
│ └── webpack.dev.js
│ └── webpack.prod.js
├── dist (Auto generated from build process)
├── node_modules (Auto generated when run npm install)
├── src
│ └── App.js
│ └── index.html
│ └── index.js
├── .bebalrc
├── .editorconfig
├── .gitignore
├── package.json
└── README.md
If your dependensies have an issue with react 16, you can downgrade to react 15 using this command
npm install -DE react@15 react-dom@15