fix react inline elements plugin when creating properties out of jsx expression containers - fixes #2766
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
var TestComponent = React.createClass({
|
||||
render: function () {
|
||||
return <span className={this.props.someProp} />;
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,14 @@
|
||||
var TestComponent = React.createClass({
|
||||
render: function () {
|
||||
return {
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: "span",
|
||||
key: null,
|
||||
ref: null,
|
||||
props: {
|
||||
className: this.props.someProp
|
||||
},
|
||||
_owner: null
|
||||
};
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user