Components are independent and reusable parts used in SAPUI5 applications. They facilitate the encapsulation of closely related parts of an application. This makes the structure of an application and its code easier to understand and to maintain.
SAPUI5 provides the following two types of components:
Faceless components (class: sap.ui.core.Component)
Faceless components have no user interface and are used for coding when no UI elements are needed, such as for a service that provides data from a back-end system.
UI components (class: sap.ui.core.UIComponent)
UI components extend faceless components and add rendering functionality to the component. They represent a screen area or element on the UI along with the respective settings and metadata. This component type will be covered in the course.
Let's look at the structure of a component.