Browse Source

Fix children to be a prop in the blog post example

main
Dan Abramov 9 years ago
parent
commit
eeeba7e55d
  1. 8
      _posts/2015-12-18-react-components-elements-and-instances.md

8
_posts/2015-12-18-react-components-elements-and-instances.md

@ -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!'
}
}
}
}

Loading…
Cancel
Save