- Run these commands
npm init
npm i --save-dev webpack webpack-cli webpack-dev-server
npm i react react-dom
npm i --save-dev babel-loader @babel/preset-env @babel/core @babel/plugin-transform-runtime @babel/preset-react babel-eslint @babel/runtime- Create webpack.config.js
- Create .babelrc
- Update package.json scripts
- Create public/index.html
- Create src/index.js AND App.js
- Run the following cmd to create the main.js file in public folder
npm run build- Run the following command and it should start up a dev server on localhost:3000
npm start