<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yucatio</author_name>
  <author_url>https://blog.hatena.ne.jp/yucatio/</author_url>
  <blog_title>yucatio@システムエンジニア</blog_title>
  <blog_url>https://yucatio.hatenablog.com/</blog_url>
  <categories>
    <anon>Material-UI</anon>
  </categories>
  <description>TextFieldでrefを使う Material-UI導入時、inputをTextFieldに置き換える時に、多くの属性は&lt;input&gt;を&lt;TextField&gt;に置き換えた際そのままでよいのですが、refはそのままにすると動きません。refをinputRefに変更する必要があります。 変更前 const AddTodo = ({dispatch}) =&gt; { let input; // 略 return ( &lt;input ref={node =&gt; { input = node }} /&gt; ) } 変更後 import TextField from '@material-ui/core/Tex…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyucatio.hatenablog.com%2Fentry%2F2018%2F11%2F16%2F102249&quot; title=&quot;Material-UIのTextFieldでrefを使う - yucatio@システムエンジニア&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://hbb.afl.rakuten.co.jp/hgb/09e70744.31e3aef1.09e70745.88f86ff4/?me_id=1213310&amp;item_id=17706684&amp;m=https%3A%2F%2Fthumbnail.image.rakuten.co.jp%2F%400_mall%2Fbook%2Fcabinet%2F7878%2F9784774177878.jpg%3F_ex%3D80x80&amp;pc=https%3A%2F%2Fthumbnail.image.rakuten.co.jp%2F%400_mall%2Fbook%2Fcabinet%2F7878%2F9784774177878.jpg%3F_ex%3D240x240&amp;s=240x240&amp;t=picttext</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-11-16 10:22:49</published>
  <title>Material-UIのTextFieldでrefを使う</title>
  <type>rich</type>
  <url>https://yucatio.hatenablog.com/entry/2018/11/16/102249</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
