mirror of
https://github.com/zoriya/vike-react-native-web-bug.git
synced 2025-12-06 06:36:18 +00:00
12 lines
240 B
TypeScript
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>
|
|
);
|
|
}
|