<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fcosk</author_name>
  <author_url>https://blog.hatena.ne.jp/fcosk/</author_url>
  <blog_title>身長191cmエンジニアのブログ</blog_title>
  <blog_url>https://fcosk.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>前回の記事で基本的なReact Hooksについて復習しました。 今回はその続きとなります。 useReducer useReducerはuseStateと同じく状態管理を行うためのHookです。 以下のような構文になっております。 const [state, dispatch] = useReducer(reducer, initialArg, init); stateが管理したい状態、dispatchがreducerを呼び出すための関数です。実際の状態変更はreducerが行います。 stateの初期値はinitialArgとなります。 reducerは以下のような関数です。 const …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffcosk.hatenablog.com%2Fentry%2F2023%2F02%2F02%2F223039&quot; title=&quot;React Hooks その2 - 身長191cmエンジニアのブログ&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/f/fcosk/20230202/20230202210512.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-02-02 22:30:39</published>
  <title>React Hooks その2</title>
  <type>rich</type>
  <url>https://fcosk.hatenablog.com/entry/2023/02/02/223039</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
