solid-native
Version:
Use solid.js to develop native mobile applications
14 lines • 505 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapSolidComponent = void 0;
const symbols_1 = require("./symbols");
function wrapSolidComponent(Comp) {
const ReactComp = () => {
throw new Error("Solid components that do not return JSX cannot be called by React");
};
// @ts-ignore
ReactComp[symbols_1.$solidVersion] = Comp;
return ReactComp;
}
exports.wrapSolidComponent = wrapSolidComponent;
//# sourceMappingURL=wrapSolidComponent.js.map