Skip to Content
React 16 Tooling
book

React 16 Tooling

by Adam Boduch, Christopher Pitt
April 2018
Intermediate to advanced content levelIntermediate to advanced
298 pages
6h 34m
English
Packt Publishing
Content preview from React 16 Tooling

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro React 16

Pro React 16

Adam Freeman

Publisher Resources

ISBN: 9781788835015Supplemental Content