
フロントエンド
11/7/2026
15
Uncaught Error: Hydration failed because the server rendered text didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
...(省略)...
<RealTimeClock>
<div>
<p>
+ 20:44:22
- 20:44:21
'use client'; // 🟢 App Router環境で ssr: false を使う場合は必須!
import dynamic from 'next/dynamic';
// 🟢 時計コンポーネントをブラウザ専用(SSRオフ)として読み込む
const RealTimeClock = dynamic(() => import('./RealTimeClock'), {
ssr: false, // サーバーサイドレンダリングを無効化
});Hika
UI/UXデザインとフロントエンドを学びながら、React / Next.js / TypeScript / Supabase を使ってWebアプリを個人開発しています。