{"id":9156,"date":"2025-09-04T15:27:35","date_gmt":"2025-09-04T06:27:35","guid":{"rendered":"https:\/\/fastcoding.jp\/blog\/?p=9156"},"modified":"2026-03-04T11:30:06","modified_gmt":"2026-03-04T02:30:06","slug":"react%e3%81%a7%e8%a1%a8%e7%a4%ba%e9%80%9f%e5%ba%a6%e3%82%92%e4%b8%8a%e3%81%92%e3%82%8b%ef%bc%81%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88","status":"publish","type":"post","link":"https:\/\/fastcoding.jp\/blog\/all\/system\/react%e3%81%a7%e8%a1%a8%e7%a4%ba%e9%80%9f%e5%ba%a6%e3%82%92%e4%b8%8a%e3%81%92%e3%82%8b%ef%bc%81%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88\/","title":{"rendered":"React\u3067\u8868\u793a\u901f\u5ea6\u3092\u4e0a\u3052\u308b\uff01\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u306e\u6d3b\u7528\u6cd5"},"content":{"rendered":"<div class=\"the_content\">\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>\u7686\u3055\u3093\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7de0\u3081\u5207\u308a\u306b\u8ffd\u308f\u308c\u3001\u300c\u901f\u3055\u300d\u306e\u8ffd\u6c42\u3092\u5fd8\u308c\u3066\u3044\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f\u7279\u306bEC\u30b5\u30a4\u30c8\u306e\u5546\u54c1\u4e00\u89a7\u3084\u691c\u7d22\u7d50\u679c\u306e\u30da\u30fc\u30b8\u3067\u306f\u3001\u307b\u3093\u306e\u5c11\u3057\u306e\u9045\u5ef6\u304c\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3001\u305d\u3057\u3066\u58f2\u308a\u4e0a\u3052\u306b\u3082\u5927\u304d\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u4eca\u56de\u306f\u3001React\u3092\u4f7f\u3063\u305f\u8868\u793a\u901f\u5ea6\u306e\u6539\u5584\u306b\u5f79\u7acb\u3064\u6226\u7565\u306b\u3064\u3044\u3066\u3001\u308f\u305f\u304f\u3057\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\u3001Mr.Fire\u304c\u304a\u4f1d\u3048\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u80cc\u666f\u3068\u8ab2\u984c\uff1a\u666e\u901a\u306bSPA&amp;API\u30b5\u30fc\u30d0\u3092\u5f37\u304f\u3059\u308b\u3058\u3083\u30c0\u30e1\u306a\u306e\uff1f<\/h2>\n\n\n\n<p>\u3042\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u5927\u91cf\u306b\u3042\u308b\u5546\u54c1\u3092\u8868\u793a\u3059\u308b\u3001\u5546\u54c1\u4e00\u89a7\u30da\u30fc\u30b8\u306e\u9ad8\u901f\u5316\u3092\u6c42\u3081\u3089\u308c\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u305d\u3082\u305d\u3082\u306e\u5546\u54c1\u70b9\u6570\u306b\u3088\u308b\u521d\u671f\u30c7\u30fc\u30bf\u306e\u91cd\u3055\u3084\u8907\u6570\u30bd\u30fc\u30b9\u304b\u3089\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u306e\u9045\u3055\u304c\u3001\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3092\u640d\u306a\u3046\u30ea\u30b9\u30af\u3092\u751f\u3093\u3067\u3044\u307e\u3057\u305f\u3002\u4e00\u822c\u7684\u306a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u65b9\u6cd5\u3067\u306f\u3001API\u306e\u5fdc\u7b54\u5f85\u3061\u3084\u30c7\u30fc\u30bf\u51e6\u7406\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\u3001\u7aef\u7684\u306bAPI\u30b5\u30fc\u30d0\u306e\u51e6\u7406\u80fd\u529b\u3092\u4e0a\u3052\u308b\u3067\u306f\u306a\u304f\u3001\u3082\u3046\u5c11\u3057\u5de5\u592b\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6539\u5584\u306e\u30dd\u30a4\u30f3\u30c8\uff1aReact\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u306e\u6d3b\u7528<\/h2>\n\n\n\n<p>\u3053\u3053\u3067\u6ce8\u76ee\u3059\u3079\u304d\u306f\u3001React\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\uff08RSC\uff09\u3068\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0SSR\uff08\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\uff09\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u3059\u3002\u7279\u306bAPI\u304b\u3089\u306e\u91cd\u3044\u30c7\u30fc\u30bf\u53d6\u5f97\u306b\u52b9\u679c\u7684\u3067\u3059\u3002Web\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u3084\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u306e\u7686\u3055\u3093\u3001\u3053\u3093\u306a\u6642\u306f\u305c\u3072\u300cReact\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u300d\u306e\u5c0e\u5165\u3092\u691c\u8a0e\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002Next.js\uff0814+\uff09\u306e\u6a5f\u80fd\u3092\u6d3b\u7528\u3059\u308b\u3068\u3001\u521d\u671f\u8868\u793a\u901f\u5ea6\u3068\u4f53\u611f\u901f\u5ea6\u304c\u683c\u6bb5\u306b\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">RSC\uff08React Server Components\uff09\u3068\u306f\uff1f<\/h3>\n\n\n\n<p>\u30b5\u30fc\u30d0\u30fc\u3067\u5b9f\u884c\u3055\u308c\u308b<strong>\u30b5\u30fc\u30d0\u30fc\u5c02\u7528\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/strong>\u3002UI\u306e\u201c\u8868\u793a\u7528\u30ed\u30b8\u30c3\u30af\u201d\u3068\u30c7\u30fc\u30bf\u53d6\u5f97\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u5bc4\u305b\u3001<strong>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u914d\u308bJS\u3092\u6700\u5c0f\u5316<\/strong>\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5f97\u610f<\/strong>\u306a\u3053\u3068: DB\u547c\u3073\u51fa\u3057\u3001\u91cd\u3044\u96c6\u8a08\u3084\u30c7\u30fc\u30bf\u6574\u5f62\u3001\u6a5f\u5bc6\u5024\u306e\u53d6\u308a\u6271\u3044\uff08\u74b0\u5883\u5909\u6570\/\u30c8\u30fc\u30af\u30f3\u7b49\uff09<\/li>\n\n\n\n<li><strong>\u4e0d\u5f97\u610f<\/strong>\u306a\u3053\u3068: <code>window<\/code>\/<code>document<\/code> \u306a\u3069\u306e\u30d6\u30e9\u30a6\u30b6API\u3001DOM\u30a4\u30d9\u30f3\u30c8\uff08\u3053\u308c\u306f<strong>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/strong>\u3078\u79fb\u52d5\uff09<\/li>\n\n\n\n<li><strong>\u8a2d\u8a08\u306e\u8ef8<\/strong>: <strong>\u8868\u793a\uff08RSC\uff09<\/strong> \u3068 <strong>\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\uff08Client\uff09<\/strong> \u3092\u5206\u96e2\u3057\u3066\u8003\u3048\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">RSC\uff08React Server Components\uff09\u53c2\u8003\u60c5\u5831<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-small-font-size\"><strong><a href=\"https:\/\/ja.react.dev\/reference\/rsc\/server-components\" target=\"_blank\" rel=\"noopener nofollow\" title=\"React\u516c\u5f0f\uff08\u65e5\u672c\u8a9e\uff09\uff5c\u30b5\u30fc\u30d0\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\">React\u516c\u5f0f\uff08\u65e5\u672c\u8a9e\uff09\uff5c\u30b5\u30fc\u30d0\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/a><\/strong>\uff1aRSC\u306e\u4f4d\u7f6e\u3065\u3051\uff08\u30b5\u30fc\u30d0\uff0f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u5f79\u5272\u5206\u96e2\u3001\u3069\u3053\u3067\u5b9f\u884c\u3055\u308c\u308b\u304b\u3001\u975e\u540c\u671f\u51e6\u7406\u306a\u3069\uff09\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li class=\"has-small-font-size\"><strong><a href=\"https:\/\/nextjsjp.org\/docs\/app\/building-your-application\/rendering\/server-components\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">Next.js\u516c\u5f0f\uff08\u65e5\u672c\u8a9e\uff09\uff5c\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/a><\/strong>\uff1aApp Router\u524d\u63d0\u3067\u3001Next.js\u306b\u304a\u3051\u308bRSC\u306e\u4f7f\u3044\u65b9\u30fb\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u304c\u307e\u3068\u307e\u3063\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Streaming SSR\uff08\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0SSR\uff09\u3068\u306f\uff1f<\/h3>\n\n\n\n<p>\u30b5\u30fc\u30d0\u30fc\u304b\u3089HTML\u3092<strong>\u5c0f\u3055\u306a\u30c1\u30e3\u30f3\u30af\u3067\u9806\u6b21\u9001\u51fa<\/strong>\u3057\u3001\u30da\u30fc\u30b8\u5168\u4f53\u3092\u5f85\u305f\u305a\u306b<strong>\u3067\u304d\u305f\u6240\u304b\u3089\u63cf\u753b<\/strong>\u3057\u307e\u3059\u3002TTFB\/LCP\u3092\u6539\u5584\u3057\u3001\u201c\u52d5\u3044\u3066\u3044\u308b\u611f\u201d\u3092\u65e9\u671f\u306b\u63d0\u4f9b\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5411\u304f\u30b1\u30fc\u30b9<\/strong>: \u30d2\u30fc\u30ed\u30fc\u30bb\u30af\u30b7\u30e7\u30f3\u3001\u8981\u7d04\u3001\u30ea\u30b9\u30c8\u306e\u5148\u982d\u306a\u3069\u300c\u5148\u306b\u51fa\u305b\u308b\u9818\u57df\u300d\u304c\u3042\u308b\u30da\u30fc\u30b8\u3002<\/li>\n\n\n\n<li><strong>\u5408\u308f\u305b\u6280<\/strong>: <code>&lt;Suspense><\/code> \u5883\u754c\u3092\u8a2d\u3051\u3001<strong>\u512a\u5148\u5ea6\u304c\u9ad8\u3044\u90e8\u5206<\/strong>\u304b\u3089\u30b9\u30c8\u30ea\u30fc\u30e0\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Streaming SSR\uff08\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0SSR\uff09\u53c2\u8003\u60c5\u5831<\/h4>\n\n\n\n<ul class=\"wp-block-list has-small-font-size\">\n<li>\u30fb<a style=\"font-weight: bold;\" href=\"https:\/\/zenn.dev\/aya1357\/articles\/1de8e730eb46ad\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">Zenn\uff5cSuspense\u3092\u6d3b\u7528\u3057\u305fStreaming\u3068Skeleton<\/a>\uff1a<code>&lt;Suspense><\/code>\u5883\u754c\u3092\u4f7f\u3063\u305f\u30b9\u30c8\u30ea\u30fc\u30e0\u8868\u793a\u306e\u5b9f\u8df5\u7684\u306a\u5c0e\u5165\u4f8b\u3002<\/li>\n\n\n\n<li>\u30fb<strong><a href=\"https:\/\/zenn.dev\/yusukebe\/articles\/41becfd057c416\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">Zenn\uff5cReact\u306eStreaming SSR\u3092\u30a8\u30c3\u30b8\u3067\u3084\u308b<\/a><\/strong>\uff1a<code>renderToReadableStream<\/code>\u306a\u3069React 18\u306e\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0API\u3092\u4f7f\u3063\u305f\u624b\u5143\u691c\u8a3c\u3068\u8003\u5bdf\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u88c5\u306e\u6d41\u308c<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u30eb\u30fc\u30c8\u3092\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5316<\/h3>\n\n\n\n<p>\u307e\u305a\u6700\u521d\u306e\u30b9\u30c6\u30c3\u30d7\u3068\u3057\u3066\u3001\u30eb\u30fc\u30c8\u3092React\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5316\u3057\u3066\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8ca0\u62c5\u3092\u8efd\u6e1b\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001API\u304b\u3089\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u30b5\u30fc\u30d0\u30fc\u3067\u52b9\u7387\u3088\u304f\u51e6\u7406\u3057\u3001\u8fc5\u901f\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u5c4a\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ app\/products\/page.tsx  \u2190 \u30c7\u30d5\u30a9\u3067 Server Component\nimport { fetchProducts } from &#039;@\/lib\/data&#039;;\n\nexport default async function ProductsPage() {\n  const products = await fetchProducts({ limit: 20 });\n  return (\n    &lt;main&gt;\n      &lt;h1&gt;\u5546\u54c1\u4e00\u89a7&lt;\/h1&gt;\n      &lt;ul&gt;\n        {products.map(p =&gt; (\n          &lt;li key={p.id}&gt;{p.name} \u2014 {p.price.toLocaleString()}\u5186&lt;\/li&gt;\n        ))}\n      &lt;\/ul&gt;\n    &lt;\/main&gt;\n  );\n}\n<\/pre><\/div>\n\n\n<p><strong>\u6ce8\u610f\u70b9<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30d6\u30e9\u30a6\u30b6API\u304c\u5fc5\u8981\u306aUI\u306f<strong>\u5225\u30d5\u30a1\u30a4\u30eb<\/strong>\u306b\u5206\u3051\u3066\u3001\u5148\u982d\u306b<code>\"use client\"<\/code>\u3002<\/li>\n\n\n\n<li>HTML\u80a5\u5927\u5316\u3092\u907f\u3051\u308b\u305f\u3081\u3001<strong>\u201c\u5148\u51fa\u3057\u9818\u57df\u201d\u3068\u201c\u5f8c\u9001\u51fa\u9818\u57df\u201d<\/strong>\u306b\u5206\u5272\uff08\u6b21\u30b9\u30c6\u30c3\u30d7\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u91cd\u8981\u90e8\u5206\u306fSuspense\u3067\u512a\u5148\u7684\u306b\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0<\/h3>\n\n\n\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u8208\u5473\u3092\u5f15\u304f\u90e8\u5206\u3084\u3001\u4e3b\u8981\u60c5\u5831\u3092\u512a\u5148\u7684\u306b\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5fc5\u8981\u306a\u60c5\u5831\u306f\u3059\u3050\u306b\u8868\u793a\u3055\u308c\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u8996\u7dda\u3092\u5f15\u304d\u3064\u3051\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ app\/products\/page.tsx\nimport { Suspense } from &#039;react&#039;;\nimport { Hero } from &#039;.\/sections\/hero&#039;;           \/\/ Server\nimport { TopList } from &#039;.\/sections\/top-list&#039;;    \/\/ Server\uff08\u8efd\u91cf\uff09\nimport { RestList } from &#039;.\/sections\/rest-list&#039;;  \/\/ Server\uff08\u91cd\u3044\uff09\n\nexport default function ProductsPage() {\n  return (\n    &lt;main&gt;\n      &lt;Suspense fallback={&lt;div style={{height: 240}} aria-busy&gt;\u8aad\u307f\u8fbc\u307f\u4e2d\u2026&lt;\/div&gt;}&gt;\n        &lt;Hero \/&gt;\n      &lt;\/Suspense&gt;\n\n      &lt;Suspense fallback={&lt;p aria-busy&gt;\u30c8\u30c3\u30d7\u5546\u54c1\u3092\u53d6\u5f97\u4e2d\u2026&lt;\/p&gt;}&gt;\n        &lt;TopList limit={8} \/&gt;\n      &lt;\/Suspense&gt;\n\n      &lt;Suspense fallback={null}&gt;\n        &lt;RestList \/&gt;\n      &lt;\/Suspense&gt;\n    &lt;\/main&gt;\n  );\n}\n<\/pre><\/div>\n\n\n<p><strong>\u6ce8\u610f\u70b9<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>fallback<\/code>\u306f<strong>\u56fa\u5b9a\u9ad8\u3055<\/strong>\u3092\u78ba\u4fdd\u3057\u3066CLS\u9632\u6b62\u3002<code>aria-busy<\/code>\u3067A11y\u914d\u616e\u3002<\/li>\n\n\n\n<li>\u91cd\u3044\u51e6\u7406\u306f<code>&lt;Suspense><\/code>\u5883\u754c\u306e\u4e0b\u306b\u5206\u96e2\u3057\u3001\u30b9\u30c8\u30ea\u30fc\u30e0\u52b9\u679c\u3092\u6700\u5927\u5316\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u305d\u306e\u4ed6\u306e\u90e8\u5206\u306f\u3086\u3063\u304f\u308a\u8aad\u307f\u8fbc\u307f<\/h3>\n\n\n\n<p>\u91cd\u8981\u3067\u306f\u306a\u3044\u90e8\u5206\u306f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u3057\u307e\u3059\u3002\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u5168\u4f53\u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u3092\u77ed\u7e2e\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306f\u3053\u3093\u306a\u3075\u3046\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u306b\u3082\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ app\/products\/filters.tsx\n&quot;use client&quot;;\nimport { useTransition, useState } from &#039;react&#039;;\n\nexport function Filters() {\n  const &#x5B;pending, start] = useTransition();\n  const &#x5B;q, setQ] = useState(&#039;&#039;);\n\n  return (\n    &lt;form onSubmit={(e) =&gt; {\n      e.preventDefault();\n      start(() =&gt; {\n        const url = new URL(window.location.href);\n        url.searchParams.set(&#039;q&#039;, q);\n        window.history.pushState({}, &#039;&#039;, url);\n      });\n    }}&gt;\n      &lt;input value={q} onChange={e =&gt; setQ(e.target.value)} placeholder=&quot;\u30ad\u30fc\u30ef\u30fc\u30c9&quot; \/&gt;\n      &lt;button disabled={pending}&gt;{pending ? &#039;\u691c\u7d22\u4e2d\u2026&#039; : &#039;\u691c\u7d22&#039;}&lt;\/button&gt;\n    &lt;\/form&gt;\n  );\n}\n<\/pre><\/div>\n\n\n<p><strong>\u6ce8\u610f\u70b9<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\"use client\"<\/code>\u306e<strong>\u9069\u7528\u7bc4\u56f2\u3092\u6700\u5c0f<\/strong>\u306b\uff08\u89aa\u306b\u4ed8\u3051\u308b\u3068\u5b50\u307e\u3067JS\u5316\uff09\u3002<\/li>\n\n\n\n<li><code>useTransition<\/code>\u3067<strong>\u4f53\u611f<\/strong>\u3092\u6ed1\u3089\u304b\u306b\uff08\u30dc\u30bf\u30f3\u7121\u52b9\u5316\/\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u72b6\u614b\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u753b\u50cf\u306e\u8868\u793a\u3092\u6700\u9069\u5316<\/h3>\n\n\n\n<p>\u753b\u50cf\u8868\u793a\u306b\u306fNext.js\u306e<img>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u3044\u3001\u8aad\u307f\u8fbc\u307f\u9806\u5e8f\u3092\u6700\u9069\u5316\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5fc5\u8981\u306a\u753b\u50cf\u3092\u8fc5\u901f\u306b\u8868\u793a\u3057\u3001\u30da\u30fc\u30b8\u5168\u4f53\u306e\u521d\u901f\u304c\u6539\u5584\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ app\/products\/sections\/hero.tsx\nimport Image from &#039;next\/image&#039;;\n\nexport async function Hero() {\n  return (\n    &lt;section className=&quot;hero&quot;&gt;\n      &lt;Image\n        src=&quot;\/hero.jpg&quot;\n        alt=&quot;\u7279\u96c6\u30d0\u30ca\u30fc&quot;\n        priority\n        width={1600}\n        height={900}\n        sizes=&quot;(max-width: 768px) 100vw, 1200px&quot;\n        style={{ width: &#039;100%&#039;, height: &#039;auto&#039; }}\n      \/&gt;\n    &lt;\/section&gt;\n  );\n}\n<\/pre><\/div>\n\n\n<p><strong>\u6ce8\u610f\u70b9<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30d2\u30fc\u30ed\u30fc\u7b49\u306f<code>priority<\/code>\u3001\u4e0b\u90e8\u753b\u50cf\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067<strong>\u9045\u5ef6<\/strong>\u3002<\/li>\n\n\n\n<li><strong>width\/height<\/strong>\u3092\u660e\u793a\u3057\u3066CLS\u9632\u6b62\u3002<code>sizes<\/code>\u6700\u9069\u5316\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u30e1\u30bf\u30c7\u30fc\u30bf\u306f\u30b5\u30fc\u30d0\u30fc\u3067\u751f\u6210<\/h3>\n\n\n\n<p>SEO\u3092\u8003\u3048\u3066\u3001\u30e1\u30bf\u30c7\u30fc\u30bf\u306f\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u751f\u6210\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u6700\u9069\u5316\u304c\u56f3\u308c\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u898b\u3064\u3051\u3066\u3082\u3089\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ app\/products\/metadata.ts \u306a\u3044\u3057 page.tsx \u306e export const metadata\nimport type { Metadata } from &#039;next&#039;;\n\nexport const metadata: Metadata = {\n  title: &#039;\u5546\u54c1\u4e00\u89a7 | \u4f8b\u30b7\u30e7\u30c3\u30d7&#039;,\n  description: &#039;\u65b0\u7740\u3084\u4eba\u6c17\u9806\u3067\u5546\u54c1\u3092\u63a2\u305b\u307e\u3059\u3002&#039;,\n  openGraph: { title: &#039;\u5546\u54c1\u4e00\u89a7&#039;, description: &#039;\u65b0\u7740\u30fb\u4eba\u6c17\u9806\u3067\u5546\u54c1\u3092\u63a2\u305b\u307e\u3059&#039;, images: &#x5B;&#039;\/og\/products.png&#039;] }\n};\n<\/pre><\/div>\n\n\n<p><strong>\u6ce8\u610f\u70b9<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u52d5\u7684\u5024\u304c\u5fc5\u8981\u306a\u3089 <code>generateMetadata<\/code> \u3092\u4f7f\u7528\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u52b9\u679c\u6e2c\u5b9a<\/h2>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u6539\u5584\u65bd\u7b56\u306b\u3088\u308a\u3001TTFB\u3084LCP\uff08Largest Contentful Paint\uff09\u3001INP\u3082\u6539\u5584\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306e\u5f80\u5fa9\u56de\u6570\u3092\u6e1b\u3089\u3057\u3001JS\u30d0\u30f3\u30c9\u30eb\u30b5\u30a4\u30ba\u3082\u524a\u6e1b\u3067\u304d\u3066\u3001\u30da\u30fc\u30b8\u5168\u4f53\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u969b\u306e\u4f53\u9a13\u304b\u3089\u5b66\u3076<\/h2>\n\n\n\n<p>\u4eca\u5e74\u3001\u5927\u624b\u4f01\u696d\u5411\u3051\u306e\u88fd\u54c1\u691c\u7d22\u30da\u30fc\u30b8\u306b\u3053\u308c\u3089\u306e\u6280\u6cd5\u3092\u5c0e\u5165\u3057\u307e\u3057\u305f\u3002\u6210\u679c\u3068\u3057\u3066\u3001TTFB\u304c\u7d0420\uff05\u6539\u5584\u3055\u308c\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u96e2\u8131\u7387\u304c7\uff05\u6e1b\u5c11\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u7d50\u679c\u3001\u30da\u30fc\u30b8\u30d3\u30e5\u30fc\u304c20\uff05\u5897\u52a0\u3057\u3001\u5b9f\u969b\u306b\u52b9\u679c\u304c\u73fe\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>React\u3092\u4f7f\u3063\u3066\u3044\u308b\u3053\u3068\u524d\u63d0\u3001\u306b\u306f\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001React\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0SSR\u3092\u4f7f\u3063\u305f\u6539\u5584\u7b56\u306e\u4e00\u4f8b\u3092\u3054\u6848\u5185\u3057\u307e\u3057\u305f\u3002\u69cb\u7bc9\u6700\u521d\u306e\u6bb5\u968e\u3067\u3053\u306e\u8a2d\u8a08\u3092\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001\u5168\u4f53\u7684\u306a\u901f\u5ea6\u611f\u304c\u7d50\u69cb\u5909\u308f\u3063\u3066\u304d\u307e\u3059\u3002\u300c\u901f\u3044\u4f53\u611f\u300d\u306f\u30e6\u30fc\u30b6\u30fc\u306e\u5fc3\u3092\u6349\u3048\u308b\u5927\u5207\u306a\u8981\u7d20\u3067\u3042\u308a\u3001\u5c0e\u5165\u306b\u3088\u308b\u30e1\u30ea\u30c3\u30c8\u306f\u5927\u304d\u3044\u3067\u3059\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\u306e\u3088\u3046\u306a\u901f\u5ea6\u6539\u5584\u306e\u53d6\u308a\u7d44\u307f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u3001\u305c\u3072<a href=\"https:\/\/fastcoding.jp\/contact\/?ad2=blog\" title=\"\">\u3053\u3061\u3089<\/a>\u304b\u3089\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u7686\u3055\u3093\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7de0\u3081\u5207\u308a\u306b\u8ffd\u308f\u308c\u3001\u300c\u901f\u3055\u300d\u306e\u8ffd\u6c42\u3092\u5fd8\u308c\u3066\u3044\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f\u7279\u306bEC\u30b5\u30a4\u30c8\u306e\u5546\u54c1\u4e00\u89a7\u3084\u691c\u7d22\u7d50\u679c\u306e\u30da\u30fc\u30b8\u3067\u306f\u3001\u307b\u3093\u306e\u5c11\u3057\u306e\u9045\u5ef6\u304c\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3001\u305d\u3057\u3066\u58f2\u308a\u4e0a\u3052\u306b\u3082\u5927\u304d\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u3053\u3068\u304c\u3042 [&hellip;]<\/p>\n","protected":false},"author":20,"featured_media":9158,"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":[15],"tags":[],"class_list":["post-9156","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-system"],"acf":[],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/09\/7dca35c600c1abe0ede680479ebeb495.png","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9156","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=9156"}],"version-history":[{"count":1,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9156\/revisions"}],"predecessor-version":[{"id":9159,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9156\/revisions\/9159"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media\/9158"}],"wp:attachment":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media?parent=9156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/categories?post=9156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/tags?post=9156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}