How it works...

Let's test this:

  1. Just run the application with npm start. If you look at the HTML, you will see that it's automatically being injected into the vendor.js and main.js bundles:
  1. If you look at the Network tab, you can see the size of the files:
  1. If you run the application with the production mode, you will notice that the bundles are smaller. Run the npm run start-production command:
  1. With this optimization, we are reducing ...

Get React Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.