CodeZettaInterview Hub

Next.js · Metadata · Tech Lead · Debugging

Can Client Components export metadata?

Short Interview Answer

No — metadata exports are from Server Components/route files.

Detailed Explanation

Keep page files as server components that render client children. A common mistake is converting page to client and losing metadata.

Common Mistake

Adding 'use client' to page.tsx and breaking metadata export.

Did you know this answer?