@tdi2/di-core
Version:
TypeScript Dependency Injection 2 - Core DI framework
23 lines (22 loc) • 903 B
JavaScript
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// tools/functional-di-enhanced-transformer/__tests__/__fixtures__/multiple-components.basic.input.tsx
function FirstComponent(props) {
return /* @__PURE__ */ React.createElement("div", null, "First: ", props.services.api.getData());
}
__name(FirstComponent, "FirstComponent");
var SecondComponent = /* @__PURE__ */ __name((props) => {
const { services } = props;
services.logger.log("");
return /* @__PURE__ */ React.createElement("div", null, "Second component");
}, "SecondComponent");
function ThirdComponent(props) {
return /* @__PURE__ */ React.createElement("div", null, props.message);
}
__name(ThirdComponent, "ThirdComponent");
export {
FirstComponent,
SecondComponent,
ThirdComponent
};
//# sourceMappingURL=multiple-components.basic.input.js.map