A top-level App component returns <Button /> from its render() method.
-
What is the relationship between
<Button />andthisin thatButton’srender()? -
Does rendering
<Button><Icon /></Button>guarantee that anIconmounts? -
Can the
Appchange anything in theButtonoutput? What and how?
@djsmith42 @vutran A single
render()method can return only a single React element (or null). However, this single React element may have an array of React elements as its children, which in turn may each have their own children which are also React elements, and so on.EDIT: clarified that "element" means "React element"