properly transform XJSIdentifier nodes referencing this into a ThisExpression - facebook/react#2927
This commit is contained in:
3
test/fixtures/transformation/react/arrow-functions/actual.js
vendored
Normal file
3
test/fixtures/transformation/react/arrow-functions/actual.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
var foo = function () {
|
||||
return () => <this />;
|
||||
};
|
||||
6
test/fixtures/transformation/react/arrow-functions/expected.js
vendored
Normal file
6
test/fixtures/transformation/react/arrow-functions/expected.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
var foo = function () {
|
||||
var _this = this;
|
||||
return function () {
|
||||
return React.createElement(_this, null);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user