{"id":10284,"date":"2026-10-01T10:33:53","date_gmt":"2026-10-01T01:33:53","guid":{"rendered":"https:\/\/fastcoding.jp\/blog\/?p=10284"},"modified":"2026-10-01T10:33:58","modified_gmt":"2026-10-01T01:33:58","slug":"nextjs-server-components-ai","status":"publish","type":"post","link":"https:\/\/fastcoding.jp\/blog\/all\/frontend\/nextjs-server-components-ai\/","title":{"rendered":"React Server Components \u306e\u300c\u3069\u3053\u3067\u5207\u308b\u304b\u300d\u3092 AI \u306b\u805e\u3044\u3066\u307f\u305f \u2500 App Router\u6642\u4ee3\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u8a2d\u8a08\u3092AI\u99c6\u52d5\u3067\u6700\u9069\u5316\u3059\u308b"},"content":{"rendered":"<div class=\"the_content\">\n<p class=\"wp-block-paragraph\">\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 MrFire\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u8fd1\u3001\u4ed5\u4e8b\u4ef2\u9593\u306b\u8a98\u308f\u308c\u3066\u518d\u958b\u3057\u305f\u30ae\u30bf\u30fc\u306e\u7df4\u7fd2\u3067\u3001\u30d0\u30f3\u30c9\u306e\u30b3\u30d4\u30fc\u66f2\u306b\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u30ae\u30bf\u30fc\u30d1\u30fc\u30c8\u3092\u8033\u30b3\u30d4\u3057\u3066\u3044\u308b\u3068\u3001\u540c\u3058\u30ae\u30bf\u30fc\u3067\u3082\u30ea\u30ba\u30e0\u3068\u30ea\u30fc\u30c9\u3067\u5b8c\u5168\u306b\u5f79\u5272\u304c\u5206\u304b\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u6539\u3081\u3066\u6c17\u3065\u304d\u307e\u3059\u3002\u30ea\u30ba\u30e0\u30ae\u30bf\u30fc\u306f\u30b3\u30fc\u30c9\u9032\u884c\u3092\u652f\u3048\u3066\u5168\u4f53\u306e\u571f\u53f0\u3092\u4f5c\u308a\u3001\u30ea\u30fc\u30c9\u30ae\u30bf\u30fc\u306f\u305d\u306e\u4e0a\u3067\u30e1\u30ed\u30c7\u30a3\u3084\u30bd\u30ed\u3092\u81ea\u7531\u306b\u52d5\u304f\u3002\u3069\u3061\u3089\u3082\u300c\u30ae\u30bf\u30fc\u300d\u3060\u3051\u3069\u3001\u5f79\u5272\u3068\u8cac\u52d9\u304c\u307e\u3063\u305f\u304f\u9055\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u6700\u8fd1\u306eNext.js\u3082\u540c\u3058\u3067\u3001Server Component\u3068Client Component\u306e\u300c\u5f79\u5272\u5206\u62c5\u300d\u304c\u66f2\u306e\u51fa\u6765\u3092\u5de6\u53f3\u3059\u308b\u3093\u3067\u3059\u3088\u306d\u3002\u30ae\u30bf\u30fc\u306e\u5206\u96e2\u3088\u308a\u306f\u96e3\u3057\u304f\u306a\u3044\u306f\u305a\u306a\u3093\u3067\u3059\u304c\u3002<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u300c\u5f79\u5272\u5206\u62c5\u300d\u304c\u3046\u307e\u304f\u3044\u304b\u305a\u306b\u82e6\u52b4\u3057\u305f\u6848\u4ef6\u304c\u3001\u3064\u3044\u5148\u65e5\u3042\u308a\u307e\u3057\u305f\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30b3\u30fc\u30dd\u30ec\u30fc\u30c8\u30b5\u30a4\u30c8\u3092Next.js App Router\u3067\u30ea\u30cb\u30e5\u30fc\u30a2\u30eb\u3059\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3001\u30c1\u30fc\u30e0\u5185\u304b\u3089\u300c\u3069\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b <code>\"use client\"<\/code> \u3092\u3064\u3051\u308b\u3079\u304d\u304b\u308f\u304b\u3089\u306a\u3044\u300d\u3068\u3044\u3046\u58f0\u304c\u4e0a\u304c\u3063\u305f\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<strong>Next.js App Router\u306b\u304a\u3051\u308bServer Component\u3068Client Component\u306e\u5883\u754c\u3092\u3069\u3046\u8a2d\u8a08\u3059\u308b\u304b<\/strong>\u3092\u3001AI\u99c6\u52d5\u958b\u767a\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u6574\u7406\u3057\u305f\u904e\u7a0b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u8a2d\u8a08\u306b\u8ff7\u3063\u3066\u3044\u308b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30c1\u30fc\u30e0\u3084\u3001App Router\u3078\u306e\u79fb\u884c\u3092\u691c\u8a0e\u3057\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u306e\u65b9\u306b\u5411\u3051\u3066\u66f8\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u300c\u3068\u308a\u3042\u3048\u305a\u5168\u90e8 Client Component\u300d\u3067\u4f55\u304c\u8d77\u304d\u305f\u304b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u521d\u671f\u3001\u30c1\u30fc\u30e0\u306fPages Router\u306e\u7d4c\u9a13\u306f\u3042\u308b\u3082\u306e\u306eApp Router\u306f\u521d\u3081\u3066\u3067\u3057\u305f\u3002Server Component\u3068\u3044\u3046\u6982\u5ff5\u306b\u99b4\u67d3\u307f\u304c\u306a\u304f\u3001\u300c\u52d5\u304b\u306a\u3044\u3088\u308a\u306f\u52d5\u304f\u307b\u3046\u304c\u3044\u3044\u300d\u3068\u3044\u3046\u5224\u65ad\u3067\u3001\u307b\u307c\u3059\u3079\u3066\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b <code>\"use client\"<\/code> \u3092\u4ed8\u3051\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d50\u679c\u3068\u3057\u3066\u3001\u30d3\u30eb\u30c9\u3057\u305f\u30d0\u30f3\u30c9\u30eb\u30b5\u30a4\u30ba\u306f\u7d04420KB\u3002\u30b3\u30fc\u30dd\u30ec\u30fc\u30c8\u30b5\u30a4\u30c8\u3068\u3057\u3066\u306f\u304b\u306a\u308a\u5927\u304d\u3044\u6570\u5b57\u3067\u3059\u3002Lighthouse\u3067\u8a08\u6e2c\u3059\u308b\u3068\u3001TTI\uff08Time to Interactive\uff09\u306f\u30e2\u30d0\u30a4\u30eb\u30674.2\u79d2\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u300c\u524d\u306e\u30b5\u30a4\u30c8\u3088\u308a\u8868\u793a\u304c\u9045\u304f\u306a\u3063\u305f\u6c17\u304c\u3059\u308b\u300d\u3068\u3044\u3046\u6307\u6458\u3092\u53d7\u3051\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u554f\u984c\u306f\u660e\u78ba\u3067\u3057\u305f\u3002Server Component\u3067\u51e6\u7406\u3059\u308c\u3070JavaScript\u306e\u30d0\u30f3\u30c9\u30eb\u306b\u542b\u307e\u308c\u306a\u3044\u90e8\u5206\u307e\u3067\u3001\u3059\u3079\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306b\u9001\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">AI \u306b\u300c\u3053\u306e \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3001Server \u3068 Client \u3069\u3063\u3061\u306b\u3059\u3079\u304d\uff1f\u300d\u3068\u805e\u304f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u304b\u3089AI\u99c6\u52d5\u958b\u767a\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306b\u5207\u308a\u66ff\u3048\u307e\u3057\u305f\u3002\u79c1\u305f\u3061\u306e\u30c1\u30fc\u30e0\u3067\u306f\u3001\u8a2d\u8a08\u5224\u65ad\u306b\u8ff7\u3063\u305f\u3068\u304d\u306bClaude\u306b\u76f8\u8ac7\u3059\u308b\u30d5\u30ed\u30fc\u3092\u53d6\u308a\u5165\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4e3b\u8981\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30b3\u30fc\u30c9\u3092Claude\u306b\u6e21\u3057\u3066\u3001\u300c\u3053\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306fServer Component\u3068Client Component\u306e\u3069\u3061\u3089\u306b\u3059\u3079\u304d\u304b\u3001\u7406\u7531\u3068\u3068\u3082\u306b\u5224\u5b9a\u3057\u3066\u307b\u3057\u3044\u300d\u3068\u4f9d\u983c\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AI\u304c\u8fd4\u3057\u3066\u304d\u305f\u5224\u5b9a\u57fa\u6e96\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306b3\u3064\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>useState<\/code>\u3001<code>useEffect<\/code>\u3001<code>useRef<\/code> \u306a\u3069\u306eReact Hooks\u3092\u4f7f\u3063\u3066\u3044\u308b\u304b \u2192 Client Component<\/li>\n\n\n\n<li><code>onClick<\/code>\u3001<code>onChange<\/code> \u306a\u3069\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u4f7f\u3063\u3066\u3044\u308b\u304b \u2192 Client Component<\/li>\n\n\n\n<li>\u4e0a\u8a18\u306e\u3069\u3061\u3089\u306b\u3082\u8a72\u5f53\u3057\u306a\u3044 \u2192 Server Component<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u57fa\u6e96\u81ea\u4f53\u306fNext.js\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3082\u66f8\u304b\u308c\u3066\u3044\u308b\u5185\u5bb9\u3067\u3059\u3002\u305f\u3060\u3001AI\u304c\u826f\u304b\u3063\u305f\u306e\u306f\u3001\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u306b\u5bfe\u3057\u30661\u3064\u305a\u3064\u300c\u3053\u308c\u306fServer\u3001\u3053\u308c\u306fClient\u300d\u3068\u5177\u4f53\u7684\u306b\u4ed5\u5206\u3051\u3066\u304f\u308c\u305f\u70b9\u3067\u3059\u3002\u62bd\u8c61\u7684\u306a\u30eb\u30fc\u30eb\u3092\u8aad\u3080\u3060\u3051\u3067\u306f\u5224\u65ad\u306b\u8ff7\u3046\u5834\u9762\u3067\u3082\u3001\u5177\u4f53\u7684\u306a\u30b3\u30fc\u30c9\u306b\u5bfe\u3059\u308b\u56de\u7b54\u304c\u3042\u308b\u3068\u8179\u843d\u3061\u3057\u3084\u3059\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Bad Case\uff1a\u30da\u30fc\u30b8\u5168\u4f53\u3092 Client Component \u306b\u3059\u308b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u3001\u6539\u5584\u524d\u306e\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u307e\u3059\u3002\u30c1\u30fc\u30e0\u304c\u6700\u521d\u306b\u66f8\u3044\u305f\u5546\u54c1\u8a73\u7d30\u30da\u30fc\u30b8\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"use client\";\n\nimport { useEffect, useState } from \"react\";\n\ntype Product = {\n  id: string;\n  name: string;\n  price: number;\n  description: string;\n  images: string&#91;];\n};\n\nexport default function ProductPage({ params }: { params: { id: string } }) {\n  const &#91;product, setProduct] = useState&lt;Product | null&gt;(null);\n  const &#91;selectedImage, setSelectedImage] = useState(0);\n  const &#91;isAddingToCart, setIsAddingToCart] = useState(false);\n\n  useEffect(() =&gt; {\n    fetch(`\/api\/products\/${params.id}`)\n      .then((res) =&gt; res.json())\n      .then((data) =&gt; setProduct(data));\n  }, &#91;params.id]);\n\n  if (!product) return &lt;div&gt;\u8aad\u307f\u8fbc\u307f\u4e2d...&lt;\/div&gt;;\n\n  const handleAddToCart = async () =&gt; {\n    setIsAddingToCart(true);\n    await fetch(\"\/api\/cart\", {\n      method: \"POST\",\n      body: JSON.stringify({ productId: product.id }),\n    });\n    setIsAddingToCart(false);\n    alert(\"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0\u3057\u307e\u3057\u305f\");\n  };\n\n  return (\n    &lt;div&gt;\n      &lt;h1&gt;{product.name}&lt;\/h1&gt;\n      &lt;div&gt;\n        &lt;img src={product.images&#91;selectedImage]} alt={product.name} \/&gt;\n        &lt;div&gt;\n          {product.images.map((img, i) =&gt; (\n            &lt;button key={i} onClick={() =&gt; setSelectedImage(i)}&gt;\n              &lt;img src={img} alt={`${product.name} ${i + 1}`} \/&gt;\n            &lt;\/button&gt;\n          ))}\n        &lt;\/div&gt;\n      &lt;\/div&gt;\n      &lt;p&gt;{product.description}&lt;\/p&gt;\n      &lt;p&gt;\u00a5{product.price.toLocaleString()}&lt;\/p&gt;\n      &lt;button onClick={handleAddToCart} disabled={isAddingToCart}&gt;\n        {isAddingToCart ? \"\u8ffd\u52a0\u4e2d...\" : \"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0\"}\n      &lt;\/button&gt;\n    &lt;\/div&gt;\n  );\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b3\u30fc\u30c9\u306e\u554f\u984c\u70b9\u3092\u6574\u7406\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30da\u30fc\u30b8\u5168\u4f53\u304c <code>\"use client\"<\/code> \u306a\u306e\u3067\u3001\u3059\u3079\u3066\u306eJavaScript\u304c\u30d6\u30e9\u30a6\u30b6\u306b\u9001\u3089\u308c\u308b<\/li>\n\n\n\n<li>\u30c7\u30fc\u30bf\u53d6\u5f97\u3092 <code>useEffect<\/code> \u3067\u884c\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u521d\u671f\u8868\u793a\u304c\u300c\u8aad\u307f\u8fbc\u307f\u4e2d&#8230;\u300d\u306b\u306a\u308b<\/li>\n\n\n\n<li>\u5546\u54c1\u8aac\u660e\u3084\u4fa1\u683c\u8868\u793a\u306a\u3069\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u306e\u306a\u3044\u90e8\u5206\u307e\u3067\u3001Client Component\u306e\u30d0\u30f3\u30c9\u30eb\u306b\u542b\u307e\u308c\u308b<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b3\u30fc\u30c9\u3092AI\u306b\u898b\u305b\u3066\u300cServer Component\u3068Client Component\u306b\u5206\u5272\u3057\u3066\u307b\u3057\u3044\u300d\u3068\u4f9d\u983c\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">AI\u304c\u51fa\u3057\u305f\u521d\u7248\u306e\u5206\u5272\u6848<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Claude\u306b\u4f9d\u983c\u3057\u305f\u7d50\u679c\u3001AI\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5206\u5272\u6848\u3092\u63d0\u793a\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>ProductPage<\/code>\uff08Server Component\uff09\uff1a\u30c7\u30fc\u30bf\u53d6\u5f97\u3068\u5168\u4f53\u306e\u30ec\u30a4\u30a2\u30a6\u30c8<\/li>\n\n\n\n<li><code>ProductImageGallery<\/code>\uff08Client Component\uff09\uff1a\u753b\u50cf\u306e\u9078\u629eUI\u306b <code>useState<\/code> \u304c\u5fc5\u8981<\/li>\n\n\n\n<li><code>AddToCartButton<\/code>\uff08Client Component\uff09\uff1a\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3068\u72b6\u614b\u7ba1\u7406\u304c\u5fc5\u8981<\/li>\n\n\n\n<li><code>ProductDescription<\/code>\uff08Server Component\uff09\uff1a\u30c6\u30ad\u30b9\u30c8\u3092\u8868\u793a\u3059\u308b\u3060\u3051<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u5224\u5b9a\u306f\u7684\u78ba\u3067\u3057\u305f\u3002AI\u306e\u5f37\u307f\u306f\u300c\u3053\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u3069\u306e\u884c\u304cClient Component\u3092\u5fc5\u8981\u3068\u3057\u3066\u3044\u308b\u304b\u300d\u3092\u6a5f\u68b0\u7684\u306b\u5224\u5b9a\u3067\u304d\u308b\u70b9\u3067\u3059\u3002\u4eba\u9593\u304c\u611f\u899a\u3067\u300c\u306a\u3093\u3068\u306a\u304f\u5168\u90e8Client\u304b\u306a\u300d\u3068\u5224\u65ad\u3057\u304c\u3061\u306a\u90e8\u5206\u3092\u3001\u30ed\u30b8\u30ab\u30eb\u306b\u5207\u308a\u5206\u3051\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Good Case\uff1aServer Component \u3092\u30d9\u30fc\u30b9\u306b\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u90e8\u5206\u3060\u3051\u3092\u5206\u96e2\u3059\u308b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">AI\u306e\u63d0\u6848\u3092\u30d9\u30fc\u30b9\u306b\u3001\u5b9f\u969b\u306b\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3057\u305f\u30b3\u30fc\u30c9\u304c\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u3001\u30da\u30fc\u30b8\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u3092Server Component\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ app\/products\/&#91;id]\/page.tsx\uff08Server Component\uff09\nimport { ProductImageGallery } from \".\/ProductImageGallery\";\nimport { AddToCartButton } from \".\/AddToCartButton\";\n\ntype Product = {\n  id: string;\n  name: string;\n  price: number;\n  description: string;\n  images: string&#91;];\n};\n\nasync function getProduct(id: string): Promise&lt;Product&gt; {\n  const res = await fetch(`https:\/\/api.example.com\/products\/${id}`, {\n    next: { revalidate: 60 },\n  });\n  return res.json();\n}\n\nexport default async function ProductPage({\n  params,\n}: {\n  params: { id: string };\n}) {\n  const product = await getProduct(params.id);\n\n  return (\n    &lt;div&gt;\n      &lt;h1&gt;{product.name}&lt;\/h1&gt;\n      &lt;ProductImageGallery images={product.images} name={product.name} \/&gt;\n      &lt;p&gt;{product.description}&lt;\/p&gt;\n      &lt;p&gt;\u00a5{product.price.toLocaleString()}&lt;\/p&gt;\n      &lt;AddToCartButton productId={product.id} \/&gt;\n    &lt;\/div&gt;\n  );\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u30dd\u30a4\u30f3\u30c8\u306f\u3001<code>async function<\/code> \u3067\u30c7\u30fc\u30bf\u53d6\u5f97\u3092\u76f4\u63a5\u884c\u3063\u3066\u3044\u308b\u70b9\u3067\u3059\u3002Server Component\u306a\u306e\u3067\u3001<code>useEffect<\/code> \u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u304b\u3089\u518d\u30d5\u30a7\u30c3\u30c1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3002HTML\u304c\u751f\u6210\u3055\u308c\u305f\u72b6\u614b\u3067\u30d6\u30e9\u30a6\u30b6\u306b\u5c4a\u304f\u305f\u3081\u3001\u300c\u8aad\u307f\u8fbc\u307f\u4e2d&#8230;\u300d\u306e\u8868\u793a\u3082\u4e0d\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306b\u3001\u753b\u50cf\u30ae\u30e3\u30e9\u30ea\u30fc\u306eClient Component\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ app\/products\/&#91;id]\/ProductImageGallery.tsx\n\"use client\";\n\nimport { useState } from \"react\";\n\ntype Props = {\n  images: string&#91;];\n  name: string;\n};\n\nexport function ProductImageGallery({ images, name }: Props) {\n  const &#91;selectedIndex, setSelectedIndex] = useState(0);\n\n  return (\n    &lt;div&gt;\n      &lt;img src={images&#91;selectedIndex]} alt={name} \/&gt;\n      &lt;div&gt;\n        {images.map((img, i) =&gt; (\n          &lt;button\n            key={i}\n            onClick={() =&gt; setSelectedIndex(i)}\n            style={{\n              border: i === selectedIndex ? \"2px solid #333\" : \"1px solid #ccc\",\n            }}\n          &gt;\n            &lt;img src={img} alt={`${name} ${i + 1}`} width={60} height={60} \/&gt;\n          &lt;\/button&gt;\n        ))}\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n  );\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u3057\u3066\u3001\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0\u3059\u308b\u30dc\u30bf\u30f3\u306eClient Component\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ app\/products\/&#91;id]\/AddToCartButton.tsx\n\"use client\";\n\nimport { useState } from \"react\";\n\ntype Props = {\n  productId: string;\n};\n\nexport function AddToCartButton({ productId }: Props) {\n  const &#91;isAdding, setIsAdding] = useState(false);\n\n  const handleClick = async () =&gt; {\n    setIsAdding(true);\n    await fetch(\"\/api\/cart\", {\n      method: \"POST\",\n      headers: { \"Content-Type\": \"application\/json\" },\n      body: JSON.stringify({ productId }),\n    });\n    setIsAdding(false);\n    alert(\"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0\u3057\u307e\u3057\u305f\");\n  };\n\n  return (\n    &lt;button onClick={handleClick} disabled={isAdding}&gt;\n      {isAdding ? \"\u8ffd\u52a0\u4e2d...\" : \"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0\"}\n    &lt;\/button&gt;\n  );\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u5206\u5272\u3067\u5909\u308f\u3063\u305f\u3053\u3068\u3092\u6574\u7406\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e3\u70b9\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30c7\u30fc\u30bf\u53d6\u5f97\u304c\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u5b8c\u7d50\u3057\u3001\u521d\u671f\u8868\u793a\u304cHTML\u3068\u3057\u3066\u5c4a\u304f<\/li>\n\n\n\n<li><code>\"use client\"<\/code> \u304c\u3064\u3044\u3066\u3044\u308b\u306e\u306f <code>ProductImageGallery<\/code> \u3068 <code>AddToCartButton<\/code> \u306e2\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3060\u3051<\/li>\n\n\n\n<li>\u5546\u54c1\u540d\u30fb\u8aac\u660e\u30fb\u4fa1\u683c\u306fServer Component\u306a\u306e\u3067\u3001JavaScript\u30d0\u30f3\u30c9\u30eb\u306b\u542b\u307e\u308c\u306a\u3044<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Composition \u30d1\u30bf\u30fc\u30f3\uff1aServer Component \u3092 Client Component \u306e children \u306b\u6e21\u3059<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">AI\u3068\u306e\u3084\u308a\u3068\u308a\u3067\u7279\u306b\u53c2\u8003\u306b\u306a\u3063\u305f\u306e\u304c\u3001Server Component\u3092Client Component\u306e <code>children<\/code> \u3068\u3057\u3066\u6e21\u3059\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305f\u3068\u3048\u3070\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30b5\u30a4\u30c9\u30d0\u30fc\u304c\u3042\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u69cb\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ app\/layout.tsx\uff08Server Component\uff09\nimport { Sidebar } from \".\/Sidebar\";\n\nexport default function Layout({ children }: { children: React.ReactNode }) {\n  return (\n    &lt;div style={{ display: \"flex\" }}&gt;\n      &lt;Sidebar&gt;\n        {\/* \u3053\u306e\u90e8\u5206\u306fServer Component\u306e\u307e\u307e *\/}\n        &lt;nav&gt;\n          &lt;a href=\"\/products\"&gt;\u5546\u54c1\u4e00\u89a7&lt;\/a&gt;\n          &lt;a href=\"\/about\"&gt;\u4f1a\u793e\u6982\u8981&lt;\/a&gt;\n          &lt;a href=\"\/contact\"&gt;\u304a\u554f\u3044\u5408\u308f\u305b&lt;\/a&gt;\n        &lt;\/nav&gt;\n      &lt;\/Sidebar&gt;\n      &lt;main&gt;{children}&lt;\/main&gt;\n    &lt;\/div&gt;\n  );\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ app\/Sidebar.tsx\uff08Client Component\uff09\n\"use client\";\n\nimport { useState } from \"react\";\n\ntype Props = {\n  children: React.ReactNode;\n};\n\nexport function Sidebar({ children }: Props) {\n  const &#91;isOpen, setIsOpen] = useState(true);\n\n  return (\n    &lt;aside style={{ width: isOpen ? \"240px\" : \"60px\", transition: \"width 0.3s\" }}&gt;\n      &lt;button onClick={() =&gt; setIsOpen(!isOpen)}&gt;\n        {isOpen ? \"\u9589\u3058\u308b\" : \"\u958b\u304f\"}\n      &lt;\/button&gt;\n      {isOpen &amp;&amp; children}\n    &lt;\/aside&gt;\n  );\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Sidebar<\/code> \u81ea\u4f53\u306fClient Component\u3067\u3059\u304c\u3001<code>children<\/code> \u3068\u3057\u3066\u6e21\u3055\u308c\u308b\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u90e8\u5206\u306fServer Component\u306e\u307e\u307e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u3048\u3070\u3001\u300c\u958b\u9589\u306e\u72b6\u614b\u7ba1\u7406\u300d\u3068\u3044\u3046\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u90e8\u5206\u3060\u3051\u3092Client Component\u306b\u9589\u3058\u8fbc\u3081\u3001\u4e2d\u8eab\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u51e6\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AI\u306b\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u306b\u3064\u3044\u3066\u805e\u3044\u305f\u3068\u3053\u308d\u3001\u300c<code>children<\/code> \u3092 <code>ReactNode<\/code> \u578b\u3067\u53d7\u3051\u53d6\u308bClient Component\u306f\u3001\u305d\u306e\u5b50\u8981\u7d20\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u65b9\u5f0f\u3092\u5909\u3048\u306a\u3044\u300d\u3068\u3044\u3046\u8aac\u660e\u304c\u8fd4\u3063\u3066\u304d\u307e\u3057\u305f\u3002\u6b63\u78ba\u306a\u56de\u7b54\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u5f8c\u306e\u8a08\u6e2c\u7d50\u679c<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6539\u5584\u5f8c\u306b\u30d3\u30eb\u30c9\u3057\u3066\u30d0\u30f3\u30c9\u30eb\u30b5\u30a4\u30ba\u3092\u8a08\u6e2c\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u6307\u6a19<\/th><th>Before<\/th><th>After<\/th><th>\u6539\u5584\u5e45<\/th><\/tr><\/thead><tbody><tr><td>\u30d0\u30f3\u30c9\u30eb\u30b5\u30a4\u30ba<\/td><td>420KB<\/td><td>180KB<\/td><td>-57%<\/td><\/tr><tr><td>TTI\uff08\u30e2\u30d0\u30a4\u30eb\uff09<\/td><td>4.2\u79d2<\/td><td>2.5\u79d2<\/td><td>-40%<\/td><\/tr><tr><td>LCP<\/td><td>3.1\u79d2<\/td><td>1.8\u79d2<\/td><td>-42%<\/td><\/tr><tr><td>CLS<\/td><td>0.12<\/td><td>0.03<\/td><td>-75%<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d0\u30f3\u30c9\u30eb\u30b5\u30a4\u30ba\u304c57%\u524a\u6e1b\u3055\u308c\u305f\u3053\u3068\u3067\u3001TTI\u304c40%\u6539\u5584\u3057\u307e\u3057\u305f\u3002\u7279\u306b\u30e2\u30d0\u30a4\u30eb\u74b0\u5883\u3067\u306e\u4f53\u611f\u901f\u5ea6\u306e\u5dee\u306f\u5927\u304d\u304f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u3082\u300c\u8868\u793a\u304c\u901f\u304f\u306a\u3063\u305f\u300d\u3068\u597d\u8a55\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CLS\u306e\u6539\u5584\u306f\u3001<code>useEffect<\/code> \u3067\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u3092\u3084\u3081\u305f\u3053\u3068\u3067\u521d\u671f\u8868\u793a\u6642\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u30b7\u30d5\u30c8\u304c\u306a\u304f\u306a\u3063\u305f\u305f\u3081\u3067\u3059\u3002Server Component\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066HTML\u3092\u8fd4\u3059\u306e\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u306b\u5c4a\u3044\u305f\u6642\u70b9\u3067\u5b8c\u6210\u3057\u305f\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">AI \u304c\u82e6\u624b\u3060\u3063\u305f\u90e8\u5206\uff1aUX \u306e\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u5224\u65ad<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">AI\u306f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u6a5f\u68b0\u7684\u306a\u4ed5\u5206\u3051\u306b\u306f\u975e\u5e38\u306b\u512a\u79c0\u3067\u3057\u305f\u3002\u305f\u3060\u3057\u3001UX\u4e0a\u306e\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u304c\u7d61\u3080\u5224\u65ad\u306b\u3064\u3044\u3066\u306f\u3001\u4eba\u9593\u306e\u5224\u65ad\u304c\u5fc5\u8981\u306a\u5834\u9762\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3064\u76ee\u306f\u3001\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u72b6\u614b\u306e\u8a2d\u8a08\u3067\u3059\u3002Server Component\u3067\u306f\u30c7\u30fc\u30bf\u53d6\u5f97\u304c\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u5b8c\u7d50\u3059\u308b\u305f\u3081\u3001\u30d6\u30e9\u30a6\u30b6\u306b\u306f\u5b8c\u6210\u3057\u305fHTML\u304c\u5c4a\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u901f\u5ea6\u9762\u3067\u306f\u30e1\u30ea\u30c3\u30c8\u3067\u3059\u304c\u3001\u300c\u30c7\u30fc\u30bf\u53d6\u5f97\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u5834\u5408\u306b\u30e6\u30fc\u30b6\u30fc\u306b\u4f55\u3092\u898b\u305b\u308b\u304b\u300d\u3068\u3044\u3046\u5224\u65ad\u306fAI\u306b\u306f\u3067\u304d\u307e\u305b\u3093\u3002Suspense\u306efallback\u3068\u3057\u3066\u4f55\u3092\u8868\u793a\u3059\u3079\u304d\u304b\u306f\u3001\u30d3\u30b8\u30cd\u30b9\u8981\u4ef6\u3068UX\u306e\u6587\u8108\u3092\u7406\u89e3\u3057\u306a\u3044\u3068\u6c7a\u3081\u3089\u308c\u306a\u3044\u9818\u57df\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3064\u76ee\u306f\u3001\u30d7\u30ed\u30b0\u30ec\u30c3\u30b7\u30d6\u30a8\u30f3\u30cf\u30f3\u30b9\u30e1\u30f3\u30c8\u306e\u5224\u65ad\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u691c\u7d22\u30d5\u30a9\u30fc\u30e0\u3092\u300cServer Component\u3067\u901a\u5e38\u306e\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u306b\u3059\u308b\u304b\u3001Client Component\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u691c\u7d22\u306b\u3059\u308b\u304b\u300d\u3068\u3044\u3046\u9078\u629e\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3060\u3051\u3067\u306f\u6c7a\u3081\u3089\u308c\u307e\u305b\u3093\u3002\u30e6\u30fc\u30b6\u30fc\u306e\u5229\u7528\u30d1\u30bf\u30fc\u30f3\u3001\u691c\u7d22\u983b\u5ea6\u3001\u30c7\u30fc\u30bf\u91cf\u306a\u3069\u3001\u30d7\u30ed\u30c0\u30af\u30c8\u306e\u6587\u8108\u306b\u4f9d\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AI\u306b\u300c\u691c\u7d22\u30d5\u30a9\u30fc\u30e0\u306f\u3069\u3061\u3089\u306b\u3059\u3079\u304d\u304b\u300d\u3068\u805e\u304f\u3068\u3001\u300c\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\u306a\u3089Client\u3001\u30b7\u30f3\u30d7\u30eb\u306b\u3059\u308b\u306a\u3089Server\u300d\u3068\u3044\u3046\u4e00\u822c\u8ad6\u306f\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002\u305f\u3060\u3001\u300c\u3053\u306e\u30d7\u30ed\u30c0\u30af\u30c8\u3067\u306f\u3069\u3061\u3089\u304c\u9069\u5207\u304b\u300d\u3068\u3044\u3046\u5224\u65ad\u306f\u3001\u7d50\u5c40\u4eba\u9593\u304c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u969b\u306b\u79c1\u305f\u3061\u304c\u51fa\u3057\u305f\u7d50\u8ad6\u306f\u300c\u521d\u671f\u30ea\u30ea\u30fc\u30b9\u3067\u306fServer Component\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u306b\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u898b\u3066\u304b\u3089Client Component\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u691c\u7d22\u306b\u79fb\u884c\u3059\u308b\u300d\u3068\u3044\u3046\u3082\u306e\u3067\u3057\u305f\u3002\u6bb5\u968e\u7684\u306a\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u53d6\u308c\u308b\u306e\u3082Server Component\u30d9\u30fc\u30b9\u306e\u8a2d\u8a08\u306e\u5229\u70b9\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Server \/ Client \u306e\u5883\u754c\u3092\u6c7a\u3081\u308b\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">AI \u3068\u306e\u58c1\u6253\u3061\u3092\u7d4c\u3066\u3001\u30c1\u30fc\u30e0\u5185\u3067\u5171\u6709\u3057\u305f\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>useState<\/code> \/ <code>useReducer<\/code> \/ <code>useEffect<\/code> \/ <code>useRef<\/code> \u3092\u4f7f\u3063\u3066\u3044\u308b\u304b \u2192 Client<\/li>\n\n\n\n<li><code>onClick<\/code> \/ <code>onChange<\/code> \/ <code>onSubmit<\/code> \u306a\u3069\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u304c\u3042\u308b\u304b \u2192 Client<\/li>\n\n\n\n<li><code>window<\/code> \/ <code>document<\/code> \/ <code>localStorage<\/code> \u306a\u3069\u30d6\u30e9\u30a6\u30b6API\u3092\u76f4\u63a5\u4f7f\u3063\u3066\u3044\u308b\u304b \u2192 Client<\/li>\n\n\n\n<li>\u4e0a\u8a18\u306e\u3044\u305a\u308c\u306b\u3082\u8a72\u5f53\u3057\u306a\u3044\u304b \u2192 Server\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\uff09<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\u306b\u5f93\u3063\u3066\u5224\u5b9a\u3057\u3001\u8ff7\u3063\u305f\u3089\u307e\u305aServer Component\u3068\u3057\u3066\u5b9f\u88c5\u3057\u3066\u307f\u308b\u3002<code>\"use client\"<\/code> \u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u90e8\u5206\u3060\u3051\u3092\u5207\u308a\u51fa\u3059\u3002\u3053\u306e\u30d5\u30ed\u30fc\u304c\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u78ba\u5b9f\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30dd\u30a4\u30f3\u30c8\u306f\u300c\u30c7\u30d5\u30a9\u30eb\u30c8\u3092Server Component\u306b\u3059\u308b\u300d\u3068\u3044\u3046\u8003\u3048\u65b9\u3067\u3059\u3002Pages Router\u3067\u306f\u5168\u3066\u304cClient Component\u3060\u3063\u305f\u306e\u3067\u3001\u3064\u3044 <code>\"use client\"<\/code> \u3092\u3064\u3051\u3066\u3057\u307e\u3044\u304c\u3061\u3067\u3059\u304c\u3001App Router\u3067\u306f\u9006\u306e\u767a\u60f3\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306f\u3001Next.js App Router\u306b\u304a\u3051\u308bServer Component\u3068Client Component\u306e\u5883\u754c\u8a2d\u8a08\u3092\u3001AI\u99c6\u52d5\u958b\u767a\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u6700\u9069\u5316\u3057\u305f\u4e8b\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u5168\u90e8Client Component\u306b\u3057\u3066\u304a\u3051\u3070\u3068\u308a\u3042\u3048\u305a\u52d5\u304f\u300d\u306f\u9593\u9055\u3044\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u9762\u3067\u5927\u304d\u306a\u4ee3\u511f\u3092\u6255\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002Server Component\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u3059\u308b\u767a\u60f3\u3078\u306e\u5207\u308a\u66ff\u3048\u304c\u3001App Router\u79fb\u884c\u306e\u7b2c\u4e00\u6b69\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\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><code>\"use client\"<\/code> \u306f\u30da\u30fc\u30b8\u5168\u4f53\u3067\u306f\u306a\u304f\u3001Hooks\u3084\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u4f7f\u3046\u6700\u5c0f\u5358\u4f4d\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u4ed8\u3051\u308b<\/li>\n\n\n\n<li>Server Component\u3092 <code>children<\/code> \u3068\u3057\u3066 Client Component\u306b\u6e21\u3059Composition\u30d1\u30bf\u30fc\u30f3\u3092\u6d3b\u7528\u3059\u308b<\/li>\n\n\n\n<li>AI\u306f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u6a5f\u68b0\u7684\u306a\u4ed5\u5206\u3051\u306b\u5f37\u3044\u304c\u3001UX\u306e\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u5224\u65ad\u306f\u4eba\u9593\u304c\u884c\u3046<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u3053\u306e\u65b9\u6cd5\u3067\u30d0\u30f3\u30c9\u30eb\u30b5\u30a4\u30ba\u309257%\u524a\u6e1b\u3057\u3001TTI\u309240%\u6539\u5584\u3067\u304d\u307e\u3057\u305f\u3002\u7279\u306b\u30e2\u30d0\u30a4\u30eb\u30e6\u30fc\u30b6\u30fc\u304c\u591a\u3044\u30b5\u30a4\u30c8\u3067\u306f\u3001\u3053\u306e\u5dee\u304c\u30b3\u30f3\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u76f4\u7d50\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u682a\u5f0f\u4f1a\u793e\u30d5\u30a1\u30b9\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u306f\u3001React\/Next.js\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u5b9f\u88c5\u3084AI\u99c6\u52d5\u958b\u767a\u306e\u3054\u76f8\u8ac7\u3092\u627f\u3063\u3066\u3044\u307e\u3059\u3002App Router\u3078\u306e\u79fb\u884c\u3084\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584\u3067\u304a\u56f0\u308a\u306e\u969b\u306f\u3001<a href=\"https:\/\/fastcoding.jp\/contact\/\">\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0<\/a>\u304b\u3089\u304a\u6c17\u8efd\u306b\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\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 MrFire\u3067\u3059\u3002 \u6700\u8fd1\u3001\u4ed5\u4e8b\u4ef2\u9593\u306b\u8a98\u308f\u308c\u3066\u518d\u958b\u3057\u305f\u30ae\u30bf\u30fc\u306e\u7df4\u7fd2\u3067\u3001\u30d0\u30f3\u30c9\u306e\u30b3\u30d4\u30fc\u66f2\u306b\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u30ae\u30bf\u30fc\u30d1\u30fc\u30c8\u3092\u8033\u30b3\u30d4\u3057\u3066\u3044\u308b\u3068\u3001\u540c\u3058\u30ae\u30bf\u30fc\u3067\u3082\u30ea\u30ba\u30e0\u3068\u30ea\u30fc\u30c9\u3067 [&hellip;]<\/p>\n","protected":false},"author":20,"featured_media":10317,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[13],"tags":[741,694,275,796],"class_list":["post-10284","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-frontend","tag-ai","tag-next-js","tag-react","tag-796"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\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 MrFire\u3067\u3059\u3002 \u6700\u8fd1\u3001\u4ed5\u4e8b\u4ef2\u9593\u306b\u8a98\u308f\u308c\u3066\u518d\u958b\u3057\u305f\u30ae\u30bf\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:160, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"MrFire\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/fastcoding.jp\/blog\/all\/frontend\/nextjs-server-components-ai\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"FASTCODING BLOG | \u682a\u5f0f\u4f1a\u793e\u30d5\u30a1\u30b9\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u516c\u5f0f\u30d6\u30ed\u30b0\u3067\u3059\u3002HTML\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3084JavaScript\u958b\u767a\u3001WordPress\u5236\u4f5c\u3092\u4e2d\u5fc3\u306b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306b\u95a2\u3059\u308b\u60c5\u5831\u304c\u6e80\u8f09\u3067\u3059\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"React Server Components \u306e\u300c\u3069\u3053\u3067\u5207\u308b\u304b\u300d\u3092 AI \u306b\u805e\u3044\u3066\u307f\u305f \u2500 App Router\u6642\u4ee3\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u8a2d\u8a08\u3092AI\u99c6\u52d5\u3067\u6700\u9069\u5316\u3059\u308b | FASTCODING BLOG\" \/>\n\t\t<meta property=\"og:description\" content=\"\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 MrFire\u3067\u3059\u3002 \u6700\u8fd1\u3001\u4ed5\u4e8b\u4ef2\u9593\u306b\u8a98\u308f\u308c\u3066\u518d\u958b\u3057\u305f\u30ae\u30bf\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/fastcoding.jp\/blog\/all\/frontend\/nextjs-server-components-ai\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2026\/09\/995728e7f106378b5c000919fd36ad68.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2026\/09\/995728e7f106378b5c000919fd36ad68.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-10-01T01:33:53+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-10-01T01:33:58+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/FASTCODING.jp\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"React Server Components \u306e\u300c\u3069\u3053\u3067\u5207\u308b\u304b\u300d\u3092 AI \u306b\u805e\u3044\u3066\u307f\u305f \u2500 App Router\u6642\u4ee3\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u8a2d\u8a08\u3092AI\u99c6\u52d5\u3067\u6700\u9069\u5316\u3059\u308b | FASTCODING BLOG\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\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 MrFire\u3067\u3059\u3002 \u6700\u8fd1\u3001\u4ed5\u4e8b\u4ef2\u9593\u306b\u8a98\u308f\u308c\u3066\u518d\u958b\u3057\u305f\u30ae\u30bf\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2026\/09\/995728e7f106378b5c000919fd36ad68.png\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"React Server Components \u306e\u300c\u3069\u3053\u3067\u5207\u308b\u304b\u300d\u3092 AI \u306b\u805e\u3044\u3066\u307f\u305f \u2500 App Router\u6642\u4ee3\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u8a2d\u8a08\u3092AI\u99c6\u52d5\u3067\u6700\u9069\u5316\u3059\u308b | FASTCODING BLOG","description":"\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 MrFire\u3067\u3059\u3002 \u6700\u8fd1\u3001\u4ed5\u4e8b\u4ef2\u9593\u306b\u8a98\u308f\u308c\u3066\u518d\u958b\u3057\u305f\u30ae\u30bf","canonical_url":"https:\/\/fastcoding.jp\/blog\/all\/frontend\/nextjs-server-components-ai\/","robots":"max-snippet:160, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"ja_JP","og:site_name":"FASTCODING BLOG | \u682a\u5f0f\u4f1a\u793e\u30d5\u30a1\u30b9\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u516c\u5f0f\u30d6\u30ed\u30b0\u3067\u3059\u3002HTML\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3084JavaScript\u958b\u767a\u3001WordPress\u5236\u4f5c\u3092\u4e2d\u5fc3\u306b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306b\u95a2\u3059\u308b\u60c5\u5831\u304c\u6e80\u8f09\u3067\u3059","og:type":"article","og:title":"React Server Components \u306e\u300c\u3069\u3053\u3067\u5207\u308b\u304b\u300d\u3092 AI \u306b\u805e\u3044\u3066\u307f\u305f \u2500 App Router\u6642\u4ee3\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u8a2d\u8a08\u3092AI\u99c6\u52d5\u3067\u6700\u9069\u5316\u3059\u308b | FASTCODING BLOG","og:description":"\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 MrFire\u3067\u3059\u3002 \u6700\u8fd1\u3001\u4ed5\u4e8b\u4ef2\u9593\u306b\u8a98\u308f\u308c\u3066\u518d\u958b\u3057\u305f\u30ae\u30bf","og:url":"https:\/\/fastcoding.jp\/blog\/all\/frontend\/nextjs-server-components-ai\/","og:image":"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2026\/09\/995728e7f106378b5c000919fd36ad68.png","og:image:secure_url":"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2026\/09\/995728e7f106378b5c000919fd36ad68.png","og:image:width":1280,"og:image:height":675,"article:published_time":"2026-10-01T01:33:53+00:00","article:modified_time":"2026-10-01T01:33:58+00:00","article:publisher":"https:\/\/www.facebook.com\/FASTCODING.jp","twitter:card":"summary_large_image","twitter:title":"React Server Components \u306e\u300c\u3069\u3053\u3067\u5207\u308b\u304b\u300d\u3092 AI \u306b\u805e\u3044\u3066\u307f\u305f \u2500 App Router\u6642\u4ee3\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u8a2d\u8a08\u3092AI\u99c6\u52d5\u3067\u6700\u9069\u5316\u3059\u308b | FASTCODING BLOG","twitter:description":"\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 MrFire\u3067\u3059\u3002 \u6700\u8fd1\u3001\u4ed5\u4e8b\u4ef2\u9593\u306b\u8a98\u308f\u308c\u3066\u518d\u958b\u3057\u305f\u30ae\u30bf","twitter:image":"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2026\/09\/995728e7f106378b5c000919fd36ad68.png"},"aioseo_meta_data":{"post_id":"10284","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":{"subject":"","preview":"","content":""},"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2026-09-25 06:48:31","updated":"2026-10-01 01:36:26","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/10284","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=10284"}],"version-history":[{"count":2,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/10284\/revisions"}],"predecessor-version":[{"id":10319,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/10284\/revisions\/10319"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media\/10317"}],"wp:attachment":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media?parent=10284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/categories?post=10284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/tags?post=10284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}