mirror of
https://github.com/ziex-dev/ziex.git
synced 2026-07-22 11:39:34 -06:00
13 lines
348 B
TypeScript
13 lines
348 B
TypeScript
import React, { useState } from "react";
|
|
|
|
export default function Page() {
|
|
const [count, setCount] = useState(0);
|
|
|
|
return (
|
|
<main>
|
|
<button onClick={() => setCount(count + 1)}>Increment</button>
|
|
<button onClick={() => setCount(count - 1)}>Decrement</button>
|
|
<p>{count}</p>
|
|
</main>
|
|
);
|
|
} |