Install all dependencies
suggest change# install react and react-dom
npm i react react-dom --save
# install webpack for bundling
npm i webpack -g
# install babel for module loading, bundling and transpiling
npm i babel-core babel-loader --save-dev
# install babel presets for react and es6
npm i babel-preset-react babel-preset-es2015 --save-dev
Babel and its presets are build tools, so they belong in devDependencies. react and react-dom stay in dependencies. A global webpack install is optional; a local one is easier to reproduce.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents