dompro
Version:
15 lines (12 loc) • 409 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.compileJSX = compileJSX;
/** @jsx compileJSX */
function compileJSX(type, props) {
for (var _len = arguments.length, children = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
children[_key - 2] = arguments[_key];
}
return { type: type, props: props || {}, children: children };
}