Salesforce Developers Blog: Quickly Assemble Components Using Lightning Component Composition

Understanding Component Composition

Component composition is the technical term for building new components and applications by assembling smaller, more granular components into something greater than the sum of its parts.

The smaller individual components do not add value in and of themselves, but their value is realized when they work together with other components to compose brand new components.

Peter Knolle breaks down the Lightning Component Framework architecture and clearly articulates the essence of component composition, which can be a difficult concept to conceptualize for developers new to the framework.

What you will learn from Peter’s piece is how to think about breaking down an application into finer grained components, then composing them into new components and applications by using component references and an attribute type called facets to pass data between components in the hierarchy.