swc/tests/tsc-references/jsx/tsxSpreadAttributesResolution11x/input.tsx/es2015.2.minified/output.js

51 lines
1.1 KiB
JavaScript
Raw Normal View History

function _extends() {
return (_extends = Object.assign || function(target) {
for(var i = 1; i < arguments.length; i++){
var source = arguments[i];
for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
}
return target;
}).apply(this, arguments);
}
const React = require("react"), obj1 = {
x: 2
};
class OverWriteAttr extends React.Component {
render() {
return React.createElement("div", null, "Hello");
}
}
let anyobj;
React.createElement(OverWriteAttr, _extends({
}, {
}, {
y: !0,
overwrite: "hi"
}, obj1)), React.createElement(OverWriteAttr, _extends({
}, obj1, {
y: !0,
overwrite: "hi"
})), React.createElement(OverWriteAttr, _extends({
x: 3,
overwrite: "hi"
}, obj1, {
y: !0
})), React.createElement(OverWriteAttr, _extends({
overwrite: "hi"
}, obj1, {
x: 3
}, {
y: !0,
x: 2,
overwrite: "world"
})), React.createElement(OverWriteAttr, _extends({
}, {
x: 2
}, {
overwrite: "world"
}, {
y: !0
})), React.createElement(OverWriteAttr, _extends({
}, anyobj));
export { };