{"provider_name":"Hatena Blog","blog_title":"Engineering Tech Dojo","author_url":"https://blog.hatena.ne.jp/plarail_hangout/","categories":["React","TypeScript"],"version":"1.0","url":"https://tech.fun-toy-life.com/entry/2026/07/12/084108","author_name":"plarail_hangout","published":"2026-07-12 08:41:08","title":"useImperativeHandle\u3067\u5b50\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u30ab\u30b9\u30bf\u30e0API\u3092\u5b9a\u7fa9\u3059\u308b","width":"100%","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/p/plarail_hangout/20260711/20260711235600.gif","type":"rich","description":"// \u5b50\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u516c\u958b\u3059\u308bAPI\u306e\u578b export type InputFieldHandle = { focus: () => void clear: () => void getValue: () => string } // useImperativeHandle \u3067\u5916\u304b\u3089\u547c\u3079\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3059\u308b const InputField = forwardRef<InputFieldHandle, Props>((props, ref) => { const [value, setValue] = useState('') const inputRef = useRef<HTMLInpu\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.fun-toy-life.com%2Fentry%2F2026%2F07%2F12%2F084108\" title=\"useImperativeHandle\u3067\u5b50\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u30ab\u30b9\u30bf\u30e0API\u3092\u5b9a\u7fa9\u3059\u308b - Engineering Tech Dojo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","blog_url":"https://tech.fun-toy-life.com/","provider_url":"https://hatena.blog"}