2024-01-05 06:57:30 +00:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
import { useState } from "react";
|
2025-02-13 08:25:39 +00:00
|
|
|
import { Button } from "@heroui/button";
|
2024-01-05 06:57:30 +00:00
|
|
|
|
|
|
|
|
export const Counter = () => {
|
|
|
|
|
const [count, setCount] = useState(0);
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Button radius="full" onPress={() => setCount(count + 1)}>
|
|
|
|
|
Count is {count}
|
|
|
|
|
</Button>
|
|
|
|
|
);
|
|
|
|
|
};
|