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?
@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"