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

More data and server code commands

All data and server code commands · Next.js 16 cheatsheet

Was this page helpful?