From e693d3f32139199a6175ee0b8af0de66b71c0b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=95=8F?= Date: Wed, 3 Dec 2014 17:28:55 +0800 Subject: [PATCH] In `Transferring Props` guide, `Manual Transfer` section will lead an error ```c var FancyCheckbox = React.createClass({ render: function() { var fancyClass = this.props.checked ? 'FancyChecked' : 'FancyUnchecked'; return (
{this.props.children}
); } }); React.render( Hello world! , document.body ); ``` When click `Hello world!` will lead a `Uncaught TypeError: Illegal invocation` error --- docs/06-transferring-props.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/06-transferring-props.md b/docs/06-transferring-props.md index d846dcec..0f0f1c2e 100644 --- a/docs/06-transferring-props.md +++ b/docs/06-transferring-props.md @@ -38,7 +38,7 @@ var FancyCheckbox = React.createClass({ } }); React.render( - + Hello world! , document.body