Custom hook that creates a memoized event callback.
import { useEventCallback } from "@teasim/hooks";
export default function Component() {
  const handleClick = useEventCallback((event) => {
    // Handle the event here
    console.log("Clicked", event);
  });
  return <button onClick={handleClick}>Click me</button>;
}