@tdi2/di-core
Version:
TypeScript Dependency Injection 2 - Core DI framework
20 lines (19 loc) • 755 B
JavaScript
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// tools/functional-di-enhanced-transformer/__tests__/__fixtures__/nested-arrow-functions.basic.input.tsx
import React from "react";
var NestedArrowFunctions = /* @__PURE__ */ __name((props) => {
const handleClick = React.useCallback(() => {
const innerFunction = /* @__PURE__ */ __name(() => {
props.services.api.getData();
}, "innerFunction");
return innerFunction;
}, []);
return /* @__PURE__ */ React.createElement("button", {
onClick: handleClick()
}, "Click me");
}, "NestedArrowFunctions");
export {
NestedArrowFunctions
};
//# sourceMappingURL=nested-arrow-functions.basic.input.js.map