张敏
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
..
2014-08-13 11:40:14 -07:00
2014-08-13 17:38:44 -07:00
2014-10-28 11:06:30 -07:00
2014-10-28 11:06:30 -07:00
2014-10-28 11:06:30 -07:00
2014-12-01 13:54:26 -08:00
2014-10-28 11:06:30 -07:00
2014-10-28 13:56:14 -07:00
2014-10-22 14:01:54 -07:00
2014-10-29 21:00:32 -07:00
2014-12-03 17:28:55 +08:00
2014-10-28 11:06:30 -07:00
2014-10-28 11:06:30 -07:00
2014-10-28 11:06:30 -07:00
2014-10-28 11:06:30 -07:00
2014-12-01 23:17:53 +09:00
2014-11-18 13:49:23 -05:00
2014-10-28 11:06:30 -07:00
2014-10-28 11:06:30 -07:00
2014-11-17 13:14:11 +01:00
2014-10-28 11:06:30 -07:00
2014-11-30 20:20:34 +03:00
2014-10-28 11:06:30 -07:00
2014-10-28 11:06:30 -07:00
2014-08-13 11:40:14 -07:00
2014-09-22 14:29:39 -07:00
2014-09-25 12:34:22 -07:00
2014-09-25 12:34:22 -07:00
2014-11-27 08:48:16 +01:00
2014-10-28 11:06:30 -07:00
2014-11-26 23:18:10 -08:00
2014-10-28 11:06:30 -07:00
2014-09-09 11:50:13 +02:00
2014-10-23 20:51:11 -07:00
2014-12-01 15:36:01 -05:00
2014-08-13 11:40:14 -07:00
2014-08-13 11:40:14 -07:00
2014-10-23 20:51:11 -07:00
2014-11-13 12:06:51 +00:00
2014-10-22 14:01:54 -07:00
2014-11-18 12:36:20 -05:00
2014-12-02 10:49:16 -06:00