<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thr3a</author_name>
  <author_url>https://blog.hatena.ne.jp/thr3a/</author_url>
  <blog_title>動かざることバグの如し</blog_title>
  <blog_url>https://blog.turai.work/</blog_url>
  <categories>
    <anon>react</anon>
  </categories>
  <description>環境 React v18 問題点 ReactにはProps機能があり、それを使うとコンポーネント間でデータのやり取りが出来る。 が孫とかまでやりとりしようとすると一気に面倒になる import type { NextPage } from 'next'; import { useState } from 'react'; const Home: NextPage = () =&gt; { const [user, setUser] = useState('長門有希'); return ( &lt;&gt; &lt;h1&gt;{user}&lt;/h1&gt; &lt;Component1 user={user} /&gt; &lt;/&gt; ); }; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20220904%2F1662258904&quot; title=&quot;ReactでContext-apiを使うサンプルコード - 動かざることバグの如し&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>2022-09-04 11:35:04</published>
  <title>ReactでContext-apiを使うサンプルコード</title>
  <type>rich</type>
  <url>https://blog.turai.work/entry/20220904/1662258904</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
