<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chanichiwasshoi</author_name>
  <author_url>https://blog.hatena.ne.jp/chanichiwasshoi/</author_url>
  <blog_title>プログラミングのゴミ箱</blog_title>
  <blog_url>https://chanichiwasshoi.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>Using the Public Folder | Create React App これが参考になった。create-react-appを実行すると、ルートディレクトリにpublicという名前のフォルダが作られる。 このフォルダにはアプリの中で使う画像など外に公開したいデータが入っている。 ここにsample.pngという名前のファイルがあったとすると、 &lt;img src={process.env.PUBLIC_URL + 'sample.png'} /&gt;;というふうにアクセスできる。 以上！</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchanichiwasshoi.hateblo.jp%2Fentry%2F2022%2F03%2F09%2F133210&quot; title=&quot;Reactでpublicフォルダーを使う方法 - プログラミングのゴミ箱&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-03-09 13:32:10</published>
  <title>Reactでpublicフォルダーを使う方法</title>
  <type>rich</type>
  <url>https://chanichiwasshoi.hateblo.jp/entry/2022/03/09/133210</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
