Skip to content

Conversation

@cookfront
Copy link
Contributor

...ror

varFancyCheckbox=React.createClass({render: function(){varfancyClass=this.props.checked ? 'FancyChecked' : 'FancyUnchecked'; return ( <divclassName={fancyClass} onClick={this.props.onClick}>{this.props.children} </div> )} }); React.render( <FancyCheckboxchecked={true} onClick={console.log}>Helloworld! </FancyCheckbox>, document.body );

When click Hello world! will lead a Uncaught TypeError: Illegal invocation error

… error ```c var FancyCheckbox = React.createClass({render: function(){var fancyClass = this.props.checked ? 'FancyChecked' : 'FancyUnchecked'; return ( <div className={fancyClass} onClick={this.props.onClick}>{this.props.children} </div> )} }); React.render( <FancyCheckbox checked={true} onClick={console.log}> Hello world! </FancyCheckbox>, document.body ); ``` When click `Hello world!` will lead a `Uncaught TypeError: Illegal invocation` error
@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

@cookfront
Copy link
ContributorAuthor

Thanks for reply. I have sign your Contributor License Agreement, And What should I do now?

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

zpao added a commit that referenced this pull request Dec 3, 2014
In `Transferring Props` guide, `Manual Transfer` section will lead an er...
@zpaozpao merged commit b1971a7 into facebook:masterDec 3, 2014
@zpao
Copy link
Member

zpao commented Dec 3, 2014

👍 thanks!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@cookfront@facebook-github-bot@zpao