O'Reilly logo

React 16 Tooling by Adam Boduch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Entry points

Entry points are used to tell Webpack where to start looking for modules used to build your application. With a simple application, you don't need anything more than a single file as your entry point. For example, this could be your index.js file that's used to render your root React component. Another way to think of this entry point, borrowing terminology from other programming languages, is the main program.

The react-scripts package looks for an index.js file in your source folder when you run the start script. It adds a couple of other entry points as well:

  • Polyfills for Promise, fetch(), and Object.assign(). These are only used if they don't already exist in the target browser.
  • A client for hot module reloading.

These ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required