React Setup
React Setup: 1. npm init 2. npm i webpack webpack-cli --save-dev 3. Add a build script to package.json "build": "webpack --mode production" 4. npm i @babel/core babel-loader @babel/preset-env @babel/preset-react --save-dev 5. Create a .babelrc and configure it: { "presets": [ "@babel/preset-env", --for compiling Javascript ES6 code down to ES5 "@babel/preset-react" --for compiling JSX and other stuff down to Javascript ] } 6. Configure webpack.config.js: const path = require('path'); module.exports = { entry: './src/index.jsx', devtool: 'inline-source-map', module: { rules: [ { test: /\.(js|jsx)$/, use: 'babel-loader', exclude: /node_modules/ } ] }, resolve: { extensions: [ ".jsx", ".js" ] }, output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist...