import { useState } from "react";
import { Button } from "@wirefront/ui/button";
// A tiny counter widget
export function Counter() {
const [count, setCount] = useState(0);
return (
<div className="flex flex-col gap-3">
<h2 className="font-heading text-xl">
Live preview
</h2>
<p>You clicked {count} times.</p>
<Button onClick={() => setCount(count + 1)}>
Increment
</Button>
</div>
);
}You clicked 3 times.