mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Fix children to be a prop in the blog post example
This commit is contained in:
@@ -70,7 +70,9 @@ When an element’s `type` is a string, it represents a DOM node with that tag n
|
||||
className: 'button button-blue',
|
||||
children: {
|
||||
type: 'b',
|
||||
children: 'OK!'
|
||||
props: {
|
||||
children: 'OK!'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -191,7 +193,9 @@ React will ask `Button` what it renders to. The `Button` will return this elemen
|
||||
className: 'button button-blue',
|
||||
children: {
|
||||
type: 'b',
|
||||
children: 'OK!'
|
||||
props: {
|
||||
children: 'OK!'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user