Files
pp-tcms/frontend/components/counter.tsx
2024-05-19 21:06:49 +09:00

15 lines
287 B
TypeScript

'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>
);
};