DirectivesLink for this heading
January 6, 2025 · View on GitHub
React Server Components
Directives are for use in React Server Components.
Directives provide instructions to bundlers compatible with React Server Components.
Source code directivesLink for Source code directives
'use client'lets you mark what code runs on the client.'use server'marks server-side functions that can be called from client-side code.
Copyright © Meta Platforms, Inc
no uwu plz
uwu?
Logo by@sawaratsuki1004
More
On this page
Search⌘CtrlK
-
react@19
- Overview
- Hooks
- Components
- APIs
-
react-dom@19
- Hooks
- Components
- APIs
- Client APIs
- Server APIs
- Static APIs
-
Rules of React
- Overview
-
React Server Components
- Server Components
- Server Functions
- Directives
-
Legacy APIs
- Legacy React APIs
Is this page useful?