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?
thisin<Button/>'srender()is a Button React Component object.No. Only if the
<Button/>component returns props.children in it's render method.Passing down props or child components to the
<Button/>.