Tip 50 Use Build Tools to Combine Components

In this tip, you’ll learn how to compile JavaScript code and assets with build tools.

In the previous tip, you saw the advantages of the component architecture. You also learned about the one big problem with component architecture: It won’t work natively in browsers.

Also in the previous tip, you used the tools provided by create-react-app[57] to get your project compiled and running. That’s great. You should always take advantage of predesigned build tools. Every project has one. Sometimes there are official projects—angular-cli and EmberCLI are examples—and if there are no official projects, search code repos such as github for Starter Packs. Eventually, however, you’ll need to customize ...

Get Simplifying JavaScript 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.