TIL that the name “Component,” of web platform & front-end framework fame, comes from the Gang of Four’s Composite Design Pattern, in which objects made of other objects can be interacted with as though they were a singular object of that type. That shared interface is called a Component, and is implemented by both the Composites and the Leaf nodes.
#SoftwareEngineering #TodayILearned #DesignPattern #Component #Composite #Web #JavaScript #React #Vue #Angular #Ember #Solid #Svelte #WebComponent