UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

30 lines (29 loc) 667 B
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