Conceptual
Login

The use client Directive

A file-level directive that marks the boundary where the tree switches from server to client: the module and everything it imports become part of the client bundle and can use state, effects, and event handlers. The boundary is per-module and transitive, so you place 'use client' on the leaves that need interactivity, not at the top.

This Concept is waiting for its first lesson!

A file-level directive that marks the boundary where the tree switches from server to client: the module and everything it imports become part of the client bundle and can use state, effects, and event handlers. The boundary is per-module and transitive, so you place 'use client' on the leaves that need interactivity, not at the top.

Are you a teacher? Sign in to start contributing.

Sign In