{"id":9318,"date":"2025-11-05T11:49:14","date_gmt":"2025-11-05T02:49:14","guid":{"rendered":"https:\/\/fastcoding.jp\/blog\/?p=9318"},"modified":"2025-11-05T11:49:23","modified_gmt":"2025-11-05T02:49:23","slug":"react%e3%81%a7%e5%9b%ba%e3%81%be%e3%82%89%e3%81%aa%e3%81%84ui","status":"publish","type":"post","link":"https:\/\/fastcoding.jp\/blog\/all\/frontend\/react%e3%81%a7%e5%9b%ba%e3%81%be%e3%82%89%e3%81%aa%e3%81%84ui\/","title":{"rendered":"React startTransition\/useDeferredValue\u3067&#8221;\u56fa\u307e\u3089\u306a\u3044UI&#8221;\u3092\u5b9f\u73fe\u3059\u308b"},"content":{"rendered":"<div class=\"the_content\">\n<p>\u3053\u3093\u306b\u3061\u306f\u3001\u682a\u5f0f\u4f1a\u793e\u30d5\u30a1\u30b9\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u30d5\u30eb\u30b9\u30bf\u30c3\u30af\u30a8\u30f3\u30b8\u30cb\u30a2\u3001\u72ec\u8eab\u8cb4\u65cfFire\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5148\u65e5\u3001\u9031\u672b\u306e\u30d0\u30a4\u30af\u30c4\u30fc\u30ea\u30f3\u30b0\u4e2d\u306b\u7acb\u3061\u5bc4\u3063\u305f\u9053\u306e\u99c5\u3067\u3001\u89b3\u5149\u5730\u691c\u7d22\u30a2\u30d7\u30ea\u3092\u4f7f\u3063\u3066\u3044\u305f\u6642\u306e\u3053\u3068\u3067\u3059\u3002\u691c\u7d22\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u305f\u3073\u306b\u753b\u9762\u304c\u4e00\u77ac\u56fa\u307e\u3063\u3066\u3001\u6587\u5b57\u5165\u529b\u304c\u8ffd\u3044\u3064\u304b\u306a\u3044\u3002\u30a4\u30e9\u30a4\u30e9\u3057\u3066\u7d50\u5c40\u4f7f\u3046\u306e\u3092\u3084\u3081\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u5e30\u5b85\u5f8c\u3001\u3075\u3068\u300c\u3053\u308c\u3001\u81ea\u5206\u305f\u3061\u304c\u4f5c\u3063\u3066\u3044\u308b\u30a2\u30d7\u30ea\u3067\u3082\u8d77\u304d\u3066\u306a\u3044\u3060\u308d\u3046\u304b?\u300d\u3068\u6c17\u306b\u306a\u3063\u3066\u3001\u3044\u304f\u3064\u304b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u898b\u76f4\u3057\u3066\u307f\u305f\u3093\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"has-small-font-size\">*\u30d0\u30a4\u30af\u306e\u632f\u52d5\u3067\u624b\u304c\u9707\u3048\u3066\u305f\u306e\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u305d\u308c\u306b\u3057\u3066\u3082\u53cd\u5fdc\u304c\u60aa\u3059\u304e\u307e\u3057\u305f\u3002\u3002\u3002<\/p>\n\n\n\n<p>\u7279\u306b\u5927\u898f\u6a21\u306a\u5546\u54c1\u4e00\u89a7\u3084\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb\u3067\u30e9\u30a4\u30d6\u691c\u7d22\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u6587\u5b57\u3092\u5165\u529b\u3059\u308b\u305f\u3073\u306b\u6570\u5343\u4ef6\u306e\u30c7\u30fc\u30bf\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u518d\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u51e6\u7406\u304c\u91cd\u3044\u3068\u3001\u5165\u529b\u6b04\u304c\u30ab\u30af\u3064\u3044\u3066\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u304c\u5927\u304d\u304f\u640d\u306a\u308f\u308c\u307e\u3059\u3002\u4eca\u56de\u306f\u3001React 18\u4ee5\u964d\u3067\u5c0e\u5165\u3055\u308c\u3066\u3044\u308bstartTransition\u3068useDeferredValue\u3092\u4f7f\u3063\u3066\u3001\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5f93\u6765\u306e\u65b9\u6cd5\u3067\u306fUI\u304c\u56fa\u307e\u308b\u7406\u7531<\/h2>\n\n\n\n<p>React \u3067\u306f\u3001\u72b6\u614b\u304c\u66f4\u65b0\u3055\u308c\u308b\u3068\u5373\u5ea7\u306b\u518d\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u304c\u8d70\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u901a\u5e38\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u30b3\u30b9\u30c8\u304c\u9ad8\u3044\u5834\u5408\u3001\u30e1\u30a4\u30f3\u30b9\u30ec\u30c3\u30c9\u304c\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3066\u5165\u529b\u304c\u9045\u5ef6\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u306a\u305c\u3053\u308c\u304c\u554f\u984c\u306b\u306a\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002JavaScript \u306f\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u3067\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001\u91cd\u3044\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u9593\u306f\u4ed6\u306e\u51e6\u7406\u304c\u5f85\u305f\u3055\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u30015000\u4ef6\u306e\u30c7\u30fc\u30bf\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u3044\u308b\u9593\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u5165\u529b\u30a4\u30d9\u30f3\u30c8\u3082\u51e6\u7406\u3067\u304d\u307e\u305b\u3093\u3002\u7d50\u679c\u3068\u3057\u3066\u300c\u5165\u529b\u3057\u305f\u306e\u306b\u53cd\u5fdc\u3057\u306a\u3044\u300d\u3068\u3044\u3046\u72b6\u614b\u304c\u767a\u751f\u3059\u308b\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u554f\u984c\u306e\u3042\u308b\u5b9f\u88c5\u4f8b<\/h3>\n\n\n\n<p>\u307e\u305a\u3001\u3088\u304f\u3042\u308b\u5b9f\u88c5\u30d1\u30bf\u30fc\u30f3\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001\u5165\u529b\u306e\u305f\u3073\u306b\u3059\u3050\u3055\u307e\u691c\u7d22\u7d50\u679c\u3092\u66f4\u65b0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nfunction ProductSearch() {\n  const &#x5B;query, setQuery] = useState(&#039;&#039;);\n  const &#x5B;products] = useState(generateProducts(5000));\n\n  \/\/ \u5165\u529b\u306e\u305f\u3073\u306b5000\u4ef6\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\n  const filtered = products.filter(p =&gt; \n    p.name.toLowerCase().includes(query.toLowerCase())\n  );\n\n  return (\n    &lt;&gt;\n       setQuery(e.target.value)} \/&gt;\n      \n    \n  );\n}\n<\/pre><\/div>\n\n\n<p>\u3053\u306e\u5b9f\u88c5\u3067\u306f\u3001onChange\u30a4\u30d9\u30f3\u30c8\u3067setQuery\u3092\u547c\u3073\u51fa\u3059\u3068\u3001\u3059\u3050\u306bfiltered\u306e\u518d\u8a08\u7b97\u304c\u8d70\u308a\u307e\u3059\u3002\u305d\u3057\u3066ProductList\u304c\u5373\u5ea7\u306b\u518d\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u4e00\u9023\u306e\u51e6\u7406\u304c\u5b8c\u4e86\u3059\u308b\u307e\u3067\u3001\u6b21\u306e\u5165\u529b\u30a4\u30d9\u30f3\u30c8\u306f\u51e6\u7406\u3055\u308c\u307e\u305b\u3093\u3002\u5b9f\u969b\u306b\u8a08\u6e2c\u3057\u3066\u307f\u308b\u3068\u30011\u6587\u5b57\u5165\u529b\u3059\u308b\u305f\u3073\u306b\u5e73\u5747\u3067450ms\u306e\u9045\u5ef6\u304c\u767a\u751f\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u512a\u5148\u5ea6\u5236\u5fa1\u306b\u3088\u308b\u89e3\u6c7a<\/h2>\n\n\n\n<p>React 18\u304b\u3089\u306f\u3001\u66f4\u65b0\u306b\u512a\u5148\u5ea6\u3092\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u300c\u30e6\u30fc\u30b6\u30fc\u306e\u5165\u529b\u306f\u3059\u3050\u306b\u53cd\u6620\u3059\u308b\u304c\u3001\u91cd\u3044\u8a08\u7b97\u7d50\u679c\u306e\u8868\u793a\u306f\u5f8c\u56de\u3057\u306b\u3059\u308b\u300d\u3068\u3044\u3046\u5236\u5fa1\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u91cd\u8981\u306a\u306e\u306f\u3001\u5165\u529b\u6b04\u306e\u5024\u306f\u3059\u3050\u306b\u66f4\u65b0\u3055\u308c\u308b\u305f\u3081\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u300c\u3061\u3083\u3093\u3068\u5165\u529b\u3067\u304d\u3066\u3044\u308b\u300d\u3068\u611f\u3058\u3089\u308c\u308b\u70b9\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">startTransition \u3092\u4f7f\u3063\u305f\u5b9f\u88c5<\/h3>\n\n\n\n<p>startTransition\u306f\u3001\u305d\u306e\u4e2d\u306e\u72b6\u614b\u66f4\u65b0\u3092\u300c\u4f4e\u512a\u5148\u5ea6\u300d\u3068\u3057\u3066\u30de\u30fc\u30af\u3059\u308b\u95a2\u6570\u3067\u3059\u3002React\u306f\u3053\u308c\u3092\u898b\u3066\u3001\u300c\u3053\u306e\u66f4\u65b0\u306f\u7dca\u6025\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u4ed6\u306e\u91cd\u8981\u306a\u51e6\u7406\u304c\u3042\u308c\u3070\u305d\u3061\u3089\u3092\u5148\u306b\u3084\u308b\u300d\u3068\u5224\u65ad\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nimport { useState, useTransition } from &#039;react&#039;;\n\nfunction ProductSearch() {\n  const &#x5B;query, setQuery] = useState(&#039;&#039;);\n  const &#x5B;deferredQuery, setDeferredQuery] = useState(&#039;&#039;);\n  const &#x5B;isPending, startTransition] = useTransition();\n  const &#x5B;products] = useState(generateProducts(5000));\n\n  const handleChange = (e) =&gt; {\n    const value = e.target.value;\n    setQuery(value); \/\/ \u5165\u529b\u6b04\u306f\u5373\u5ea7\u306b\u66f4\u65b0\n    startTransition(() =&gt; {\n      setDeferredQuery(value); \/\/ \u691c\u7d22\u306f\u4f4e\u512a\u5148\u5ea6\n    });\n  };\n\n  const filtered = products.filter(p =&gt; \n    p.name.toLowerCase().includes(deferredQuery.toLowerCase())\n  );\n\n  return (\n    &lt;&gt;\n      \n      {isPending &amp;&amp; \u691c\u7d22\u4e2d...}\n      \n    \n  );\n}\n<\/pre><\/div>\n\n\n<p>\u3053\u306e\u5b9f\u88c5\u306e\u30dd\u30a4\u30f3\u30c8\u306f\u3001query\u3068deferredQuery\u3068\u3044\u30462\u3064\u306e\u72b6\u614b\u3092\u6301\u3064\u3053\u3068\u3067\u3059\u3002query\u306f\u5165\u529b\u6b04\u306e\u8868\u793a\u306b\u4f7f\u3044\u3001deferredQuery\u306f\u5b9f\u969b\u306e\u691c\u7d22\u51e6\u7406\u306b\u4f7f\u3044\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u304c\u300ca\u300d\u3068\u5165\u529b\u3059\u308b\u3068\u3001\u307e\u305asetQuery(&#8216;a&#8217;)\u304c\u5373\u5ea7\u306b\u5b9f\u884c\u3055\u308c\u3066\u5165\u529b\u6b04\u306b\u300ca\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u6b21\u306bstartTransition\u5185\u306esetDeferredQuery(&#8216;a&#8217;)\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u4f4e\u512a\u5148\u5ea6\u306a\u306e\u3067\u3001\u4ed6\u306e\u51e6\u7406\u304c\u3042\u308c\u3070\u305d\u3061\u3089\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">useDeferredValue \u3092\u4f7f\u3063\u305f\u30b7\u30f3\u30d7\u30eb\u306a\u5b9f\u88c5<\/h3>\n\n\n\n<p>useDeferredValue\u306f\u3001\u5024\u305d\u306e\u3082\u306e\u3092\u300c\u9045\u5ef6\u30d0\u30fc\u30b8\u30e7\u30f3\u300d\u3068\u3057\u3066\u53d6\u5f97\u3059\u308b\u30d5\u30c3\u30af\u3067\u3059\u3002startTransition\u3088\u308a\u3082\u5ba3\u8a00\u7684\u3067\u3001\u72b6\u614b\u30922\u3064\u7ba1\u7406\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nimport { useState, useDeferredValue, useMemo } from &#039;react&#039;;\n\nfunction ProductSearch() {\n  const &#x5B;query, setQuery] = useState(&#039;&#039;);\n  const deferredQuery = useDeferredValue(query);\n  const &#x5B;products] = useState(generateProducts(5000));\n\n  const filtered = useMemo(() =&gt; {\n    return products.filter(p =&gt; \n      p.name.toLowerCase().includes(deferredQuery.toLowerCase())\n    );\n  }, &#x5B;products, deferredQuery]);\n\n  const isPending = query !== deferredQuery;\n\n  return (\n    &lt;&gt;\n       setQuery(e.target.value)} \/&gt;\n      {isPending &amp;&amp; \u691c\u7d22\u4e2d...}\n      \n    \n  );\n}\n<\/pre><\/div>\n\n\n<p>useDeferredValue\u306f\u5185\u90e8\u7684\u306bstartTransition\u3068\u540c\u69d8\u306e\u4ed5\u7d44\u307f\u3092\u4f7f\u3063\u3066\u304a\u308a\u3001\u6e21\u3055\u308c\u305f\u5024\u306e\u300c\u9045\u5ef6\u30d0\u30fc\u30b8\u30e7\u30f3\u300d\u3092\u8fd4\u3057\u307e\u3059\u3002query\u304c\u66f4\u65b0\u3055\u308c\u3066\u3082\u3059\u3050\u306b\u306fdeferredQuery\u306b\u53cd\u6620\u3055\u308c\u305a\u3001React\u304c\u300c\u4eca\u306f\u4f59\u88d5\u304c\u3042\u308b\u300d\u3068\u5224\u65ad\u3057\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u66f4\u65b0\u3055\u308c\u307e\u3059\u3002\u307e\u305f\u3001useMemo\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u7d50\u679c\u3092\u30e1\u30e2\u5316\u3059\u308b\u3053\u3068\u3067\u3001deferredQuery\u304c\u5909\u308f\u3089\u306a\u3044\u9650\u308a\u518d\u8a08\u7b97\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306b\u307e\u3068\u3081\u3066\u8a66\u305b\u308b\u30b3\u30fc\u30c9\u3092\u304a\u3044\u3066\u307f\u307e\u3057\u305f\u300250,000\u4ef6\u306e\u30e9\u30f3\u30c0\u30e0\u306a\u30ec\u30b3\u30fc\u30c9\u3092\u6271\u3063\u305f\u5834\u5408\u306e\u4f53\u611f\u901f\u5ea6\u306e\u9055\u3044\u304c\u5206\u304b\u308b\u3068\u601d\u3044\u307e\u3059(MacPro\u30ec\u30d9\u30eb\u306e\u30d1\u30bd\u30b3\u30f3\u3060\u3068\u3001\u3053\u306e\u7a0b\u5ea6\u3067\u306f\u4f55\u3082\u5909\u308f\u3089\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3002\u3002\u3002)<\/p>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_ogbapaV\" src=\"\/\/codepen.io\/anon\/embed\/ogbapaV?height=450&amp;theme-id=1&amp;slug-hash=ogbapaV&amp;default-tab=result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed ogbapaV\" title=\"CodePen Embed ogbapaV\" class=\"cp_embed_iframe\" style=\"width:100%;overflow:hidden\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8a08\u6e2c\u7d50\u679c<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u6307\u6a19<\/th><th>\u5f93\u6765<\/th><th>\u9069\u7528\u5f8c<\/th><th>\u6539\u5584\u7387<\/th><\/tr><\/thead><tbody><tr><td>\u5165\u529b\u9045\u5ef6<\/td><td>450ms<\/td><td>45ms<\/td><td>90%<\/td><\/tr><tr><td>INP\u30b9\u30b3\u30a2<\/td><td>820ms<\/td><td>180ms<\/td><td>78%<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u88c5\u6642\u306e\u6ce8\u610f\u70b9<\/h2>\n\n\n\n<p>\u51e6\u7406\u304c\u975e\u5e38\u306b\u901f\u3044\u5834\u5408\u3001\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u8868\u793a\u304c\u4e00\u77ac\u3060\u3051\u8868\u793a\u3055\u308c\u3066\u9006\u306b\u6c17\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u4e00\u5b9a\u6642\u9593\u4ee5\u4e0b\u306e\u5834\u5408\u306f\u8868\u793a\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3068\u3001\u3088\u308a\u81ea\u7136\u306a\u4f53\u9a13\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nconst &#x5B;showLoading, setShowLoading] = useState(false);\n\nuseEffect(() =&gt; {\n  if (isPending) {\n    const timer = setTimeout(() =&gt; setShowLoading(true), 200);\n    return () =&gt; clearTimeout(timer);\n  } else {\n    setShowLoading(false);\n  }\n}, &#x5B;isPending]);\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u4eca\u56de\u7d39\u4ecb\u3057\u305fstartTransition\u3068useDeferredValue\u306f\u3001React 18\u3067\u8ffd\u52a0\u3055\u308c\u305f\u512a\u5148\u5ea6\u5236\u5fa1\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u3092\u6271\u3046\u30e9\u30a4\u30d6\u691c\u7d22\u3084\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u6a5f\u80fd\u3067\u306f\u3001\u5165\u529b\u306e\u53cd\u5fdc\u901f\u5ea6\u304c\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u306b\u76f4\u7d50\u3057\u307e\u3059\u3002\u5f93\u6765\u306e\u5b9f\u88c5\u3067\u306f\u3001\u3059\u3079\u3066\u306e\u66f4\u65b0\u304c\u540c\u3058\u512a\u5148\u5ea6\u3067\u51e6\u7406\u3055\u308c\u308b\u305f\u3081\u3001\u91cd\u3044\u8a08\u7b97\u304c\u5165\u529b\u3092\u30d6\u30ed\u30c3\u30af\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u62bc\u3055\u3048\u3066\u304a\u304d\u305f\u3044\u30dd\u30a4\u30f3\u30c8\u306f\u4ee5\u4e0b\u306e3\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5165\u529b\u306f\u5373\u5ea7\u306b\u53cd\u6620\u3057\u3001\u7d50\u679c\u8868\u793a\u306f\u9045\u5ef6\u3055\u305b\u308b\u512a\u5148\u5ea6\u5236\u5fa1\u3092\u5c0e\u5165\u3059\u308b<\/li>\n\n\n\n<li>isPending\u30d5\u30e9\u30b0\u3067\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u72b6\u614b\u3092\u8868\u793a\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u51e6\u7406\u4e2d\u3067\u3042\u308b\u3053\u3068\u3092\u4f1d\u3048\u308b<\/li>\n\n\n\n<li>useMemo\u3084React.memo\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u4e0d\u8981\u306a\u518d\u8a08\u7b97\u3092\u9632\u3050<\/li>\n<\/ul>\n\n\n\n<p>\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u5165\u529b\u9045\u5ef6\u304c450ms\u304b\u308945ms\u306b\u6539\u5584\u3055\u308c\u3001INP\u30b9\u30b3\u30a2\u308278%\u5411\u4e0a\u3057\u307e\u3057\u305f\u3002\u6b21\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u682a\u5f0f\u4f1a\u793e\u30d5\u30a1\u30b9\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u306f\u3001\u3053\u3046\u3044\u3063\u305fReact\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u306b\u3064\u3044\u3066\u8c4a\u5bcc\u306a\u7d4c\u9a13\u304c\u3042\u308a\u307e\u3059\u3002INP\u30b9\u30b3\u30a2\u306e\u6539\u5584\u3067\u304a\u56f0\u308a\u306e\u969b\u306f\u3001<a href=\"https:\/\/fastcoding.jp\/contact\/\" target=\"_blank\" rel=\"noopener\" title=\"\">\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044<\/a>\u3002<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>React\u306e\u30e9\u30a4\u30d6\u691c\u7d22\u3067\u5165\u529b\u304c\u56fa\u307e\u308b\u539f\u56e0\u3068\u3001\u305d\u306e\u89e3\u6c7a\u7b56\u3092\u5fb9\u5e95\u89e3\u8aac\u3002React 18\u4ee5\u964d\u306estartTransition\u3068useDeferredValue\u3067UI\u66f4\u65b0\u306b\u512a\u5148\u5ea6\u3092\u4ed8\u3051\u3001\u5165\u529b\u9045\u5ef6\u3092450ms\u219245ms\u306b\u6539\u5584\u3002INP\u30b9\u30b3\u30a2\u308278\uff05\u5411\u4e0a\u3057\u305f\u5b9f\u8df5\u30b3\u30fc\u30c9\u4ed8\u304d\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3059\u3002<\/p>\n","protected":false},"author":20,"featured_media":9338,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[13],"tags":[275,317],"class_list":["post-9318","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-frontend","tag-react","tag-ui-ux"],"acf":[],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/11\/ce05b75802feb5f7a702b65bf9144eef.png","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/comments?post=9318"}],"version-history":[{"count":5,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9318\/revisions"}],"predecessor-version":[{"id":9342,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9318\/revisions\/9342"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media\/9338"}],"wp:attachment":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media?parent=9318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/categories?post=9318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/tags?post=9318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}