What are children and how to use composition?
Answer
•children are nested content of a component.
•Allows building composition (Layout, Card).
•Makes API flexible.
•Can be combined with render props.
•Avoid overly complex abstractions.
Was this answer helpful?