Next.js 16 · Data and server code
Make a client component
Add this directive at the top of a file to use state, effects and browser APIs.
"use client";
Official Next.js 16 documentation
Next.js 16 · Data and server code
Add this directive at the top of a file to use state, effects and browser APIs.
"use client";
Official Next.js 16 documentation
Was this page helpful?