Next.js · Junior · Question 66 of 75
Why does export const metadata in a 'use client' page cause an error?
- ✓Correct answer: Metadata exports are supported only in server components
- 2
metadatamust be namedmetain client files - 3Client pages cannot have a title
Explanation
Keep the page a server component and move interactive parts into a separate client component, or set the title in a parent layout.