Quick reference for RSC patterns — when to use 'use client', data fetching, streaming, Suspense boundaries.
Uploaded markdown content, not a verification of tool compatibility or results. Review the raw text, commands, and permissions before using it. Stars require an account.
name: rsc-cheatsheet
async function Dashboard() {
const [stats, posts] = await Promise.all([getStats(), getPosts()]);
return <>{/* render */}</>;
}
1. Adding 'use client' when you don't need interactivity
2. Passing non-serializable props from server to client
3. Not using Suspense for loading states