synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
30 lines (29 loc) • 667 B
JavaScript
import { jsxs as t, jsx as r } from "react/jsx-runtime";
import { useState as c } from "react";
function u({ userId: e }) {
const [o, n] = c(0);
return /* @__PURE__ */ t("div", { children: [
/* @__PURE__ */ r(
"button",
{
style: { backgroundColor: "blue", color: "white" },
onClick: () => n(o + 1),
children: "Click to increment count!"
}
),
/* @__PURE__ */ t("p", { children: [
" Count = ",
o,
" "
] }),
/* @__PURE__ */ t("p", { children: [
" Passed in userId = ",
e,
" "
] })
] });
}
export {
u as default
};
//# sourceMappingURL=TemplateComponent.js.map