{"title":"preact\u306eonMouseMove\u3067\u30de\u30a6\u30b9\u5ea7\u6a19\u3092\u3068\u308b\u3068","author_name":"ma2saka","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2F0xf.hatenablog.com%2Fentry%2F2024%2F05%2F15%2F170124\" title=\"preact\u306eonMouseMove\u3067\u30de\u30a6\u30b9\u5ea7\u6a19\u3092\u3068\u308b\u3068 - 0xf\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u3061\u3087\u3063\u3068\u4e8b\u60c5\u304c\u3042\u3063\u3066\u30de\u30a6\u30b9\u5ea7\u6a19\u304c\u6b32\u3057\u304b\u3063\u305f\u306e\u3067\u3059\u3002 import { render } from 'preact' import { useCallback, useState } from 'preact/hooks' function App() { let a = 0 const [mousePoint, setMousePoint] = useState<[number, number]>([0, 0]) const track = useCallback((e: MouseEvent) => { if (mousePoint[0] == e.clientX && mousePoint\u2026","provider_url":"https://hatena.blog","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","\u65e5\u8a18","typescript"],"blog_title":"0xf","width":"100%","blog_url":"https://0xf.hatenablog.com/","url":"https://0xf.hatenablog.com/entry/2024/05/15/170124","height":"190","published":"2024-05-15 17:01:24","author_url":"https://blog.hatena.ne.jp/ma2saka/","image_url":null,"version":"1.0","type":"rich","provider_name":"Hatena Blog"}