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?
thisinside the Button's render method should also point to the instance rendered by React so I'm going to say both andthispoint to the same object.rendermethod. Typing them out and assigning it to a variable doesn't, unless you then return that variable.