<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>riku929hr</author_name>
  <author_url>https://blog.hatena.ne.jp/riku929hr/</author_url>
  <blog_title>rikuto tech blog</blog_title>
  <blog_url>https://blog.riku929hr.com/</blog_url>
  <categories>
    <anon>Reactチュートリアル</anon>
    <anon>React</anon>
    <anon>TypeScript</anon>
  </categories>
  <description>タイムトラベル機能の追加｜Stateのリフトアップ、再び squaresを配列historyに保存しておき、あとで参照できるようにしていきます。 これまで、stateはBoardコンポーネントに実装していましたが、これをGameコンポーネントに移し、Boardにはpropsを渡すことによってアクセスできるようにします。 Gameコンポーネント まず、GameコンポーネントにstateのhistoryとxIsNextを設定します。 const [history, setHistory] = useState([{ squares: Array(9).fill(null) }]); const […</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.riku929hr.com%2Fentry%2F2021%2F07%2F04%2F173621&quot; title=&quot;React Tutorialを TypeScriptとHooksで書き直してみた⑤（fin） - rikuto tech blog&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>2021-07-04 17:36:21</published>
  <title>React Tutorialを TypeScriptとHooksで書き直してみた⑤（fin）</title>
  <type>rich</type>
  <url>https://blog.riku929hr.com/entry/2021/07/04/173621</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
