With the custom component in the power apps, it makes the app makers easy to share an update one or more components with other makers.
A component library is a centralized and repository of components for usability.
The below video shows, an example of creating a custom component called emotional rating component. Which can be used, across all the apps to rate a particular product.