swc/tests/tsc-references/jsx/tsxInArrowFunctionx/input.tsx/es5.1.normal/output.js

25 lines
639 B
JavaScript

// didn't work
/*#__PURE__*/ React.createElement("div", null, function() {
/*#__PURE__*/ return React.createElement("div", {
text: "wat"
});
});
// didn't work
/*#__PURE__*/ React.createElement("div", null, function(x) {
/*#__PURE__*/ return React.createElement("div", {
text: "wat"
});
});
// worked
/*#__PURE__*/ React.createElement("div", null, function() {
/*#__PURE__*/ return React.createElement("div", {
text: "wat"
});
});
// worked (!)
/*#__PURE__*/ React.createElement("div", null, function() {
/*#__PURE__*/ return React.createElement("div", {
text: "wat"
});
});