Skip to content
Discussion options

You must be logged in to vote

From the React docs, https://react.dev/reference/rsc/use-server#reference:

Instead of individually marking functions with 'use server', you can add the directive to the top of a file to mark all exports within that file as Server Functions that can be used anywhere, including imported in client code.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dillu24
Comment options

@icyJoseph
Comment options

Answer selected by dillu24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants