Ana içeriğe geç
Bu içerik dilinizde henüz mevcut değil ve İngilizce gösteriliyor.

Next.js Server vs. Client Components

Skill Doğrulandı
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 özeti

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.

Yükleme

npx skills add wsimmonds/claude-nextjs-skills

Vercel skills CLI'yi (skills.sh) npx üzerinden çalıştırır — yerelde Node.js ve skills uyumlu en az bir ajanın (Claude Code, Cursor, Codex, …) kurulu olmasını gerektirir. Repo'nun agentskills.io biçimini izlediği varsayılır.

7 months ago
90 stars
MIT
2 days ago tarihinde güncellendi
Kaynağı görüntüle

© 2025 SkillRepo · Doğru skill'i bulun, gürültüye takılmayın.