Webpack for React v17, a minimalistic setup

React v17 came out with a lot of buzz that has shaken up the frontend ecosystem. Finally the promise land in horizon 🏝 but it also broke my development process 😩 in current projects. Let’s say you have an opportunity to start fresh — so much free time. right? 😷

Setup babel and webpack

Let install packages quickly

npm i -D html-webpack-plugin webpack webpack-cli babel-loader @babel/core @babel/preset-react

react & react-dom

npm i react react-dom