web-humas-fe/components/counter.tsx

15 lines
277 B
TypeScript
Raw Normal View History

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