import { useState } from "react";
import { useClickAnyWhere } from "@teasim/hooks";
export default function Component() {
const [count, setCount] = useState(0);
useClickAnyWhere(() => {
setCount((prev) => prev + 1);
});
return <p>Click count: {count}</p>;
}