React·100 questions

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?

More questions in this topic

Related questions from other topics