Review a Next.js component for server/client boundaries
Checks an App Router component for misplaced "use client", leaked server-only code, hydration risks and avoidable client bundle weight.
このリソースは英語のみで提供されています。
プロンプトは、ご自身のアシスタントにコピーして使うテキストです。KitLocal はプロンプトを実行しません。
変数を入力
入力した内容はこのブラウザ内にのみ残り、URL への追加、保存、外部への送信は行われません。
プレビュー
未入力: Component code
Review this Next.js (version 16, App Router) component.
Cache Components enabled: no
Check and report, with line references:
1. Is "use client" necessary, and is it as low in the tree as possible?
2. Does any client code import server-only modules, secrets, or Node built-ins?
3. Can browser-only values (window, localStorage, Date.now, Math.random) cause a hydration mismatch?
4. Are props crossing the server → client boundary serializable?
5. Are there heavy dependencies that could be loaded lazily?
6. Are params / searchParams / cookies / headers handled with the async APIs for this version?
Answer "no issue" explicitly for items that are fine. Do not rewrite the file unless asked;
propose minimal diffs.
```tsx
{{component}}
```
目的
Catch server/client boundary mistakes in Next.js App Router code before they become runtime errors or bundle bloat.
使う場面
- You added or moved a component and are unsure where "use client" belongs.
- A page hydrates oddly or the client bundle grew.
準備するもの
- The component (and its direct imports if short), plus the Next.js version.
期待される出力
A numbered list (items 1-6) with verdict, evidence and a minimal diff where needed.
このカタログについて
同梱スナップショット · 2026/11/15 6:05 に公開 · カタログのリビジョン 5bc079fe355af2214bc0
アプリに同梱されたスナップショットを表示しています(コンテンツソースが設定されていません)。ソース側にはより新しいコンテンツがある可能性があります。