<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kei_s_lifehack</author_name>
  <author_url>https://blog.hatena.ne.jp/kei_s_lifehack/</author_url>
  <blog_title>KAEDE Hack blog</blog_title>
  <blog_url>https://kei-s-lifehack.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>React useState使い方 なぜ使うか A: Class, super, this... と書くより短くかけるから code www.udemy.com これを参考にした まずcreate-react-app で作ったprojectに import React, { useState } from 'react'; で, {useState }を追加 アローfnで入れ物を書く． const App = props =&gt; { ....... return ( &lt;div&gt; &lt;/div&gt; ) } ここに stateの初期化 switch関数などの関数 personsを表示するreturn (…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkei-s-lifehack.hatenablog.com%2Fentry%2F2020%2F05%2F28%2FReact-useState&quot; title=&quot;React useState useEffect使い方 - KAEDE Hack 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>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kei_s_lifehack/20200528/20200528055336.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-28 06:02:23</published>
  <title>React useState useEffect使い方</title>
  <type>rich</type>
  <url>https://kei-s-lifehack.hatenablog.com/entry/2020/05/28/React-useState</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
