Adding React to Webpack 4

In this recipe, we are going to implement React with Webpack 4, but we will use a plugin called html-webpack-plugin to generate our index.html file to render our React application. In the next recipe, we will integrate Node.js to have more flexibility in our server-side before rendering the HTML code.

Get React Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.