Using metadata with 'use client' in Next 13.4.8
Unanswered
Great Skua posted this in #help-forum
Great SkuaOP
Hello,
I have "selection" folder/page.
In the page.tsx, I have:
But, it won't work if I add 'use client'.
How do I apply the title for the metadata?
I have "selection" folder/page.
In the page.tsx, I have:
export const metadata = {
title: "Selections Page",
};But, it won't work if I add 'use client'.
How do I apply the title for the metadata?
1 Reply
@Great Skua Hello,
I have "selection" folder/page.
In the page.tsx, I have:
tsx
export const metadata = {
title: "Selections Page",
};
But, it won't work if I add 'use client'.
How do I apply the title for the metadata?
[by wrapping it in a server component](https://nextjs-discord-common-questions.joulev.dev/how-to-set-metadata-to-page-tsx-rendered-as-client-components)