Skip to content

Comments

fix: clarify use client directive placement in code examples#137

Open
Leonccaa wants to merge 1 commit intovercel-labs:mainfrom
Leonccaa:main
Open

fix: clarify use client directive placement in code examples#137
Leonccaa wants to merge 1 commit intovercel-labs:mainfrom
Leonccaa:main

Conversation

@Leonccaa
Copy link

Summary

Fixes the placement of 'use client' directive in code examples. The directive should be shown as being in a separate file or at the top of the file, not inline within code blocks showing RSC examples.

Changes

  • server-dedup-props.md: Clarified that 'use client' goes at the top of a separate client file
  • server-serialization.md: Same fix
  • AGENTS.md: Same fix for all 3 instances

This fixes issue #136 which reports that showing 'use client' inline in RSC code examples is confusing and technically incorrect.

@vercel
Copy link

vercel bot commented Feb 15, 2026

Someone is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant