Skip to content

Commit

Permalink
'use client' - flesh out usages and reference (#6362)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
4 people authored Oct 30, 2023
1 parent 49c2d78 commit 9c60167
Show file tree
Hide file tree
Showing 6 changed files with 335 additions and 20 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/content/reference/react/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ Directives provide instructions to [bundlers compatible with React Server Compon

## Source code directives {/*source-code-directives*/}

* [`'use client'`](/reference/react/use-client) marks source files whose components execute on the client.
* [`'use client'`](/reference/react/use-client) lets you mark what code runs on the client.
* [`'use server'`](/reference/react/use-server) marks server-side functions that can be called from client-side code.
353 changes: 334 additions & 19 deletions src/content/reference/react/use-client.md

Large diffs are not rendered by default.

0 comments on commit 9c60167

Please sign in to comment.