Commit Graph

4 Commits

Author SHA1 Message Date
cookfront
83d5a4514d The same problem in issue #2648 2014-12-07 15:42:51 +08:00
张敏
e693d3f321 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 (
      <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
2014-12-03 17:28:55 +08:00
Stefan Dombrowski
26ad3053c5 React.renderComponent --> React.render
Also fixed a spelling mistake.
2014-10-29 19:05:16 +01:00
Sebastian Markbage
4202fcd9c5 Replace transferPropsTo with transferring props patterns 2014-10-28 11:06:30 -07:00