<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>utgwkk</author_name>
  <author_url>https://blog.hatena.ne.jp/utgwkk/</author_url>
  <blog_title>私が歌川です</blog_title>
  <blog_url>https://blog.utgw.net/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>起こったこと React Compilerを有効にした上で、以下のような ClientComponent コンポーネントをrenderすると、useMemo フックを呼び出している行で ReferenceError: func is not defined というエラーが発生する。 import { useMemo } from 'react'; function createHook(func: (x: string) =&gt; string) { const useData = () =&gt; { return useMemo(() =&gt; ['123'].map((x) =&gt; func(x)), …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.utgw.net%2Fentry%2F2026%2F02%2F17%2F192626&quot; title=&quot;React Compilerの不具合を踏んだ - 私が歌川です&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>2026-02-17 19:26:26</published>
  <title>React Compilerの不具合を踏んだ</title>
  <type>rich</type>
  <url>https://blog.utgw.net/entry/2026/02/17/192626</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
