<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinkufencer</author_name>
  <author_url>https://blog.hatena.ne.jp/shinkufencer/</author_url>
  <blog_title>コード日進月歩</blog_title>
  <blog_url>https://shinkufencer.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>Reactハンズオンラーニングを読んでいてなるほどなーと思ったのでメモ コード例 Reactでクリックイベントを付与したオブジェクトを作る関数を作るとする function makeClickableButton(onClickEventFunction = f =&gt; f){ return ( &lt;button onClick={onClickEventFunction} &gt;this is demo button&lt;/button&gt;) } f =&gt; f という形で一見すると意味のない初期値をいれるような記述が今回取り上げたい話題 どういう嬉しい効果があるのか このような書き方にすると「引数に何もセ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinkufencer.hateblo.jp%2Fentry%2F2022%2F02%2F26%2F000000&quot; title=&quot;JavaScriptにおいてイベントハンドラに何もしないダミー関数を入れる意味と効果 - コード日進月歩&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://m.media-amazon.com/images/I/512GaA55o9S._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-02-26 00:00:00</published>
  <title>JavaScriptにおいてイベントハンドラに何もしないダミー関数を入れる意味と効果</title>
  <type>rich</type>
  <url>https://shinkufencer.hateblo.jp/entry/2022/02/26/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
