<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>numb_86</author_name>
  <author_url>https://blog.hatena.ne.jp/numb_86/</author_url>
  <blog_title>30歳からのプログラミング</blog_title>
  <blog_url>https://numb86-tech.hatenablog.com/</blog_url>
  <categories>
    <anon>React</anon>
  </categories>
  <description>使用している React のバージョンは16.8.4。 レンダー後の処理を指定するための仕組み React Hooks の一つであるuseEffectは、レンダー後に実行したい処理を React に伝えるための仕組み。 useEffect(fn)と記述すると、DOMの更新が終わったあとにfnを実行する。 useEffectはレンダー後に必ず実行される。最初にレンダーした際もそうだし、propsやstateに変更があってレンダーし直した際もそう。そこに区別はない。 以下の例では、このコンポーネントが表示された際にeffect!というログが流れる。 そしてボタンを押下した際にも、その都度effec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnumb86-tech.hatenablog.com%2Fentry%2F2019%2F03%2F21%2F182159&quot; title=&quot;useEffect の概要と async function を使う際の注意点 - 30歳からのプログラミング&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.user.blog.st-hatena.com/default_entry_og_image/16709943/1552392850810796</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-21 18:21:59</published>
  <title>useEffect の概要と async function を使う際の注意点</title>
  <type>rich</type>
  <url>https://numb86-tech.hatenablog.com/entry/2019/03/21/182159</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
