rc-headless-ui
Version:
A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React
45 lines (44 loc) • 855 B
JavaScript
import { jsxs as t } from "react/jsx-runtime";
import { useState as e } from "react";
const r = "_containerCounter_ex48o_1", c = {
containerCounter: r
};
function a() {
const [n, o] = e(0);
return /* @__PURE__ */ t("div", { className: c.containerCounter, children: [
"Counter",
/* @__PURE__ */ t(
"button",
{
onClick: () => o(n + 1),
children: [
"Click",
n
]
}
)
] });
}
const u = "_containerCounter2_4w245_1", i = {
containerCounter2: u
};
function l() {
const [n, o] = e(0);
return /* @__PURE__ */ t("div", { className: i.containerCounter2, children: [
"Counter2",
/* @__PURE__ */ t(
"button",
{
onClick: () => o(n + 1),
children: [
"Click",
n
]
}
)
] });
}
export {
a as C,
l as a
};