add additional react ThisExpression conversion test
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
var foo = function () {
|
||||
return () => <this />;
|
||||
};
|
||||
|
||||
var bar = function () {
|
||||
return () => <this.foo />;
|
||||
};
|
||||
|
||||
@@ -4,3 +4,10 @@ var foo = function () {
|
||||
return React.createElement(_this, null);
|
||||
};
|
||||
};
|
||||
|
||||
var bar = function () {
|
||||
var _this = this;
|
||||
return function () {
|
||||
return React.createElement(_this.foo, null);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user