|
|
@ -70,9 +70,11 @@ When an element’s `type` is a string, it represents a DOM node with that tag n |
|
|
|
className: 'button button-blue', |
|
|
|
children: { |
|
|
|
type: 'b', |
|
|
|
props: { |
|
|
|
children: 'OK!' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
@ -191,9 +193,11 @@ React will ask `Button` what it renders to. The `Button` will return this elemen |
|
|
|
className: 'button button-blue', |
|
|
|
children: { |
|
|
|
type: 'b', |
|
|
|
props: { |
|
|
|
children: 'OK!' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
|