swc/tests/tsc-references/jsx/tsxSpreadAttributesResolution13x/input.tsx/es5.2.minified/output.js

21 lines
672 B
JavaScript

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);
}
var React = require("react");
export default function Component(props) {
return React.createElement(ChildComponent, _extends({
}, props, {
property1: "NewString"
}));
};
function ChildComponent(param) {
var property1 = param.property1;
return React.createElement("span", null, property1);
}