Dev.Lib
arrow_backBack to Blogs
LEVEL_1010.6June 27, 20261 min read

Server Components architecture

Frontend Architecture

Server/client split across app tree — data fetching on server, interactivity on client boundaries.

Summary

Server/client split across app tree — data fetching on server, interactivity on client boundaries. Reduces client JS; adds mental model and deployment coupling to server. Caching and serialization rules for props. Defer to project-stack.mdc for project-specific patterns. Pairs with 2.8 Server Components.

Code example

// Server Component fetches; Client Component interacts
async function Page() {
  const posts = await getPosts();
  return (
    <>
      <PostList posts={posts} />
      <CreatePostForm />
    </>
  );
}

Key points

  • Server/client split across app tree — data fetching on server, interactivity on client boundaries.
  • Reduces client JS; adds mental model and deployment coupling to server.
  • Caching and serialization rules for props.
  • Defer to project-stack.mdc for project-specific patterns.
  • Pairs with 2.8 Server Components.

Further reading

Related concepts