@cycle/react-dom
Version:
Cycle.js driver that uses React DOM to render the view
16 lines • 528 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = require("react");
const react_2 = require("@cycle/react");
function createIncorporatedElement(type, props, ...children) {
if (!props || !props.sel) {
return react_1.createElement(type, props, ...children);
}
else {
return react_1.createElement(react_2.incorporate(type), props, ...children);
}
}
exports.default = {
createElement: createIncorporatedElement
};
//# sourceMappingURL=jsx-factory.js.map