UNPKG

@tdi2/di-core

Version:

TypeScript Dependency Injection 2 - Core DI framework

22 lines (21 loc) 804 B
var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); // tools/functional-di-enhanced-transformer/__tests__/__fixtures__/verbose-example.basic.input.tsx import React from "react"; function VerboseExampleComponent(props) { const { title, services } = props; React.useEffect(() => { services.logger?.log(`VerboseExample: ${title}`); services.api.getData().then((data) => { services.logger?.log(`VerboseExample: Got ${data.length} items`); }); }, [ title ]); return /* @__PURE__ */ React.createElement("div", null, "Verbose Example: ", title); } __name(VerboseExampleComponent, "VerboseExampleComponent"); export { VerboseExampleComponent }; //# sourceMappingURL=verbose-example.basic.input.js.map