<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>React</anon>
    <anon>TypeScript</anon>
  </categories>
  <description>Twitter みたいに画像を投稿できるフォームでは input[type=&quot;file&quot;] を使いますがデフォルトでは選択した画像のファイル名が表示されるだけなので、何の画像を選択したかプレビューができたほうが便利です。 割とフォーム作成の際に必要になるので思いつきで React のコンポーネント化してみましたのメモ。 JavaScript FileAPI で input[type=&quot;file&quot;] で選択されている画像のプレビューを表示する方法 HTML &lt;input type=&quot;file&quot; id=&quot;inputFile&quot;&gt; JavaScript const inputfile = docume…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2022%2F06%2F14%2F083000&quot; title=&quot;React (TypeScript) 画像をプレビューするコンポーネント作ってみた - かもメモ&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://m.media-amazon.com/images/I/41OAhq9S4lL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-06-14 08:30:00</published>
  <title>React (TypeScript) 画像をプレビューするコンポーネント作ってみた</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2022/06/14/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
