<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>portaltan</author_name>
  <author_url>https://blog.hatena.ne.jp/portaltan/</author_url>
  <blog_title>脳汁portal</blog_title>
  <blog_url>https://portaltan.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>React</anon>
  </categories>
  <description>現在Reactのstateの値を変更するメソッドとして、「setState」や「replaceState」は用意されていますが、「appendState」はありません。Component API | Reactfacebook.github.ioなので、既存のstateの値に新しい値を追加したい場合は以下のように書きます this.setState({key: this.state.key + value}) keyは任意のkey valueは新しく追加したvalue &quot;this.state.key&quot;で既存のvalueを呼び出している</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fportaltan.hatenablog.com%2Fentry%2F2015%2F08%2F10%2F125813&quot; title=&quot;Reactでstateに上書きではなく追加する方法 - 脳汁portal&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>2015-08-10 12:58:13</published>
  <title>Reactでstateに上書きではなく追加する方法</title>
  <type>rich</type>
  <url>https://portaltan.hatenablog.com/entry/2015/08/10/125813</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
