Compound Component Pattern in React

Compound components are useful when a component needs flexible structure without turning into prop soup.