next.js / test /development /app-dir /hydration-error-count /app /hydration-with-runtime-errors /page.tsx
| 'use client' | |
| import { useEffect } from 'react' | |
| export default function Page() { | |
| useEffect(() => { | |
| throw new Error('runtime error') | |
| }, []) | |
| return ( | |
| <p> | |
| sneaky <p>very sneaky</p> | |
| </p> | |
| ) | |
| } | |