@samitouri / QOS-React / commits / 421d177dd2

Fix children to be a prop in the blog post example

Dan Abramov committed Dec 18, 2015 at 21:32 UTC 421d177dd272ff0f0b1cb5cc695ae273f84a9d0b
1 file changed +6 -2
docs/_posts/2015-12-18-react-components-elements-and-instances.md
+6 -2
@@ -70,7 +70,9 @@ When an element’s `type` is a string, it represents a DOM node with that tag n
70 className: 'button button-blue',
71 children: {
72 type: 'b',
73 - children: 'OK!'
73 + props: {
74 + children: 'OK!'
75 + }
76 }
77 }
78 }
@@ -191,7 +193,9 @@ React will ask `Button` what it renders to. The `Button` will return this elemen
193 className: 'button button-blue',
194 children: {
195 type: 'b',
194 - children: 'OK!'
196 + props: {
197 + children: 'OK!'
198 + }
199 }
200 }
201 }