April 2018
Intermediate to advanced
298 pages
6h 34m
English
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:
These ...