Skip to content

FlashcardNot attempted

Container / presentational on the server

Recall it before you reveal

How does the container–presentational pattern map onto Server Components?

Space to reveal
Show answer & explanation

Containers are async Server Components that fetch, transform and decide (e.g. ReviewsContainer awaits a service). Presentational components just render props: easy to test, and reusable.

Put data access in plain async service functions (getProduct(slug)), not "server hooks". Wrap slow containers in Suspense so they stream in parallel. Services are for reads, Server Actions for mutations, Route Handlers for external APIs.