arrow_backBACK TO DRILLS
Black Beltserver-componentsPREMIUM
The Silent Metadata Export
In the Next.js App Router, you export metadata from a page file that has been marked "use client" at the top.
REACT_MODULE // 0x42
'use client';
import { useState } from 'react';
export const metadata = {
title: 'Dashboard',
};
export default function DashboardPage() {
const [count, setCount] = useState(0);
return <div>{count}</div>;
}What happens to the metadata export at build time?