A top-level App
component returns <Button />
from its render()
method.
-
What is the relationship between
<Button />
andthis
in thatButton
’srender()
? -
Does rendering
<Button><Icon /></Button>
guarantee that anIcon
mounts? -
Can the
App
change anything in theButton
output? What and how?
this
in<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/>
.