mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-25 23:05:23 +00:00
Co-authored-by: Soichiro Miki <smiki-tky@umin.ac.jp> Co-authored-by: David McCabe <davemccabe@gmail.com> Co-authored-by: Luna Wei <luwe@fb.com>
690 B
690 B
title, canary
| title | canary |
|---|---|
| Directives | true |
These directives are needed only if you're using React Server Components or building a library compatible with them.
Directives provide instructions to bundlers compatible with React Server Components.
Source code directives {/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.