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

Get Simplifying JavaScript now with O’Reilly online learning.

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