From eeeba7e55d3173db4a1569deb2562c0563c2732e Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 18 Dec 2015 21:32:32 +0000 Subject: [PATCH] Fix children to be a prop in the blog post example --- .../2015-12-18-react-components-elements-and-instances.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/_posts/2015-12-18-react-components-elements-and-instances.md b/_posts/2015-12-18-react-components-elements-and-instances.md index a69abdaae..29ce23add 100644 --- a/_posts/2015-12-18-react-components-elements-and-instances.md +++ b/_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!' + } } } }