<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>saneyuki_s</author_name>
  <author_url>https://blog.hatena.ne.jp/saneyuki_s/</author_url>
  <blog_title>saneyuki_s log</blog_title>
  <blog_url>https://saneyukis.hatenablog.com/</blog_url>
  <categories>
    <anon>react</anon>
  </categories>
  <description>Reactのprops/contextの使い分け 仕事先でたまたまこれの話になり、個人的に思っていることをまとめた。 公開したのは、時々見かける「どっちを使うべき？」みたいな議論に 自分も混ざりたかった 思うところがあったから. 「とにかくpropsでいい」と自分は考えている。 なによりReactは書き方に詰まった場合に、フレームワークライブラリ固有の事情を考慮して解決するというよりも、実装や設計上の問題が一般的なプログラミングパターンの範疇の発想で解決できるのがよい 前提 以下のように考える React/preact のコンポーネント = 通常のclassや関数 状態を隠蔽して抽象する 最近…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsaneyukis.hatenablog.com%2Fentry%2F2021%2F03%2F20%2F022215&quot; title=&quot;Reactのprops/contextの使い分け - saneyuki_s log&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-03-20 02:22:15</published>
  <title>Reactのprops/contextの使い分け</title>
  <type>rich</type>
  <url>https://saneyukis.hatenablog.com/entry/2021/03/20/022215</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
