Babel is going to allow us to transform our JSX into actual JavaScript. What's nice about Babel though is it can be used for much more than just JSX -> JS transformations. You can also opt into "future" versions of JavaScript (ES2015, 2016, etc) and use Babel to transform your future JavaScript to modern day JavaScript so the browser can understand it
npm install --save-dev babel-core babel-loader babel-preset-react
Give Webpack the single babel-loader then that loader will look to a .babelrc file.
Babel is going to allow us to transform our JSX into actual JavaScript. What's nice about Babel though is it can be used for much more than just JSX -> JS transformations. You can also opt into "future" versions of JavaScript (ES2015, 2016, etc) and use Babel to transform your future JavaScript to modern day JavaScript so the browser can understand it
npm install --save-dev babel-core babel-loader babel-preset-react Give Webpack the single babel-loader then that loader will look to a .babelrc file.