only skip traversal of immutable JSX elements in the optimisation.react.constantElements transformer when we've actually hoisted them - closes #1344
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
var Foo = React.createClass({
|
||||
render: function() {
|
||||
return <div className={this.props.className}>
|
||||
<span />
|
||||
</div>;
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
var _ref = <span />;
|
||||
|
||||
var Foo = React.createClass({
|
||||
render: function render() {
|
||||
return <div className={this.props.className}>
|
||||
{_ref}
|
||||
</div>;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user