Files
vike-react-native-web-bug/pages/index/Counter.tsx
2024-05-11 14:59:10 +02:00

12 lines
240 B
TypeScript

import React, { useState } from "react";
export function Counter() {
const [count, setCount] = useState(0);
return (
<button type="button" onClick={() => setCount((count) => count + 1)}>
Counter {count}
</button>
);
}