Naar hoofdinhoud springen
Deze inhoud is nog niet beschikbaar in jouw taal en wordt in het Engels weergegeven.

Next.js Server vs. Client Components

Skill Geverifieerd
98

Guide for choosing between Server Components and Client Components in Next.js App Router. CRITICAL for useSearchParams (requires Suspense + 'use client'), navigation (Link, redirect, useRouter), cookies/headers access, and 'use client' directive. Activates when prompt mentions useSearchParams, Suspense, navigation, routing, Link component, redirect, pathname, searchParams, cookies, headers, async components, or 'use client'. Essential for avoiding mixing server/client APIs.

AI-samenvatting

This skill provides detailed explanations and code examples for differentiating between Next.js Server and Client Components. It covers critical patterns like data fetching, hook usage, navigation, and the React 'use' API, along with common anti-patterns to avoid.

Installatie

npx skills add wsimmonds/claude-nextjs-skills

Voert de Vercel skills CLI (skills.sh) uit via npx — vereist Node.js lokaal en minstens één geïnstalleerde skills-compatibele agent (Claude Code, Cursor, Codex, …). Gaat ervan uit dat de repo het agentskills.io-formaat volgt.

7 months ago
90 stars
MIT
Bijgewerkt op 2 days ago
Broncode bekijken

© 2025 SkillRepo · Vind de juiste skill, sla de ruis over.