<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kentem_dev_kitazawa</author_name>
  <author_url>https://blog.hatena.ne.jp/kentem_dev_kitazawa/</author_url>
  <blog_title>KENTEM TechBlog</blog_title>
  <blog_url>https://tech.kentem.jp/</blog_url>
  <categories>
    <anon>アドベントカレンダー2025</anon>
  </categories>
  <description>この記事は、 KENTEM TechBlog アドベントカレンダー2025 11日目、12月11日の記事です。 今回紹介するのは、React初心者の私が実際に経験した「クラスとReactの挙動」に関する問題です。 機能実装の過程で計算基準を保持する計算クラスを作成しました。このクラスには計算メソッドを定義し、計算結果を返すようにしていましたが… 画面の計算基準の値は更新されているのに、計算メソッドで使われる計算基準は古いままという謎の現象に直面しました。なぜこんなことが起きたのか？この記事では、その原因・解決策を学びとして共有します。 起こった事象 原因 解決策 まとめ おわりに 起こった事象…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.kentem.jp%2Fentry%2F2025%2F12%2F11%2F090000&quot; title=&quot;ReactHooksとインスタンス更新の注意点 - KENTEM TechBlog&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/k/kentem_dev_kitazawa/20251130/20251130232853.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-12-11 09:00:00</published>
  <title>ReactHooksとインスタンス更新の注意点</title>
  <type>rich</type>
  <url>https://tech.kentem.jp/entry/2025/12/11/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
