mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
17 lines
288 B
TypeScript
17 lines
288 B
TypeScript
"use client";
|
|
|
|
import { useState } from "react";
|
|
|
|
function App() {
|
|
const [count, setCount] = useState(null);
|
|
|
|
return (
|
|
<>
|
|
{/* @ts-expect-error */}
|
|
<button onClick={() => setCount(count => count.charAt(0))}>count is {count}</button>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default App;
|