<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>plarail_hangout</author_name>
  <author_url>https://blog.hatena.ne.jp/plarail_hangout/</author_url>
  <blog_title>Engineering Tech Dojo</blog_title>
  <blog_url>https://tech.fun-toy-life.com/</blog_url>
  <categories>
    <anon>React</anon>
    <anon>TypeScript</anon>
  </categories>
  <description>// 画面表示時に自動フォーカス const nameRef = useRef&lt;HTMLInputElement&gt;(null) useEffect(() =&gt; { nameRef.current?.focus() }, []) // Enter で次フィールドへ移動 const moveFocus = (e: React.KeyboardEvent&lt;HTMLInputElement&gt;, next: React.RefObject&lt;HTMLInputElement | HTMLButtonElement | null&gt;) =&gt; { if (e.key === 'Enter') { e.preve…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.fun-toy-life.com%2Fentry%2F2026%2F07%2F11%2F212652&quot; title=&quot;React入力フォームのフォーカス制御：useRef・forwardRefを使う - Engineering Tech Dojo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/p/plarail_hangout/20260711/20260711211316.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-07-11 21:26:52</published>
  <title>React入力フォームのフォーカス制御：useRef・forwardRefを使う</title>
  <type>rich</type>
  <url>https://tech.fun-toy-life.com/entry/2026/07/11/212652</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
