Answer
Composition combines components through props and children. React commonly uses composition to share UI behavior rather than deep component inheritance hierarchies.
Composition combines components through props and children. React commonly uses composition to share UI behavior rather than deep component inheritance hierarchies.