Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Teaches React Server Components, streaming SSR, performance optimization, and Core Web Vitals patterns for modern frontend apps.
96% 100%+4 ptsof test cases passed
Passed 24 of 24 test cases with the skill, and 23 of 24 without it.
3 of 3 safety checks passed
Not used yet
Server Components run on the server and send rendered HTML to the client. They can directly access databases, filesystems, and internal APIs without exposing them to the browser.
// app/products/page.tsx (Server Component by default)
async function ProductsPage() {
const products = await db.query("SELECT * FROM products WHERE active = true");
return (
<main>
<h1>Products</h1>
<ProductList products={products} />
<AddToCartButton /> {/* Client Component */}
</main>
);
}
Rules:
useState, useEffect, or browser APIs'use client' at the top of the file'use client' boundary as deep in the tree as possibleimport { Suspense } from 'react';
export default function Dashboard() {
return (
<div>
<Header /> {/* renders immediately */}
<Suspense fallback={<ChartSkeleton />}>
<AnalyticsChart /> {/* streams when ready */}
</Suspense>
<Suspense fallback={<TableSkeleton />}>
<RecentOrders /> {/* streams independently */}
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.