15 lines
292 B
TypeScript
15 lines
292 B
TypeScript
'use client';
|
|
|
|
import { useState } from 'react';
|
|
|
|
export default function Home() {
|
|
const [count, setCount] = useState(0);
|
|
return (
|
|
<div>
|
|
<h1>Mission Control</h1>
|
|
<p>Count: {count}</p>
|
|
<button onClick={() => setCount(c => c + 1)}>Increment</button>
|
|
</div>
|
|
);
|
|
}
|