arrow_backBACK TO DRILLS
Black Beltserver-componentslockPREMIUM

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?

lock

This Drill is Locked

This is a premium drill. Continue on to the next free drill in the sequence.

CONTINUE DRILLarrow_forward
BugDojo
BlogFAQ

© 2026. Carved in code.