UNPKG

@tdi2/di-core

Version:

TypeScript Dependency Injection 2 - Core DI framework

20 lines (19 loc) 784 B
var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); // tools/functional-di-enhanced-transformer/__tests__/__fixtures__/inline-with-destructuring.basic.input.tsx import React from "react"; function InlineWithDestructuring(props) { const { message, services } = props; React.useEffect(() => { services.api.getData().then((data) => { services.logger?.log(`Got data: ${data.length} items`); services.cache?.set("data", data); }); }, []); return /* @__PURE__ */ React.createElement("div", null, "Message: ", message); } __name(InlineWithDestructuring, "InlineWithDestructuring"); export { InlineWithDestructuring }; //# sourceMappingURL=inline-with-destructuring.basic.input.js.map