Skip to content

'use server' reference page does not exist in the doc #6799

@mootookoi

Description

@mootookoi

This link returns a 404 https://react.dev/reference/react/use-server.

I am trying to understand the differences between 'use server' and server-only.

For what I understand, server-only is to forbid Client Component to access functions or files where it is imported.

And 'use server' is used to enable server actions.

So in my mind, I prefer call them 'use action' ^^

But because of the non existing ref page, I can't be sure =)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions