मुख्य सामग्री पर जाएँ
यह सामग्री अभी आपकी भाषा में उपलब्ध नहीं है और अंग्रेज़ी में दिखाई जा रही है।

Next.js Server vs. Client Components

Skill सत्यापित
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 सारांश

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.

इंस्टॉलेशन

npx skills add wsimmonds/claude-nextjs-skills

Vercel skills CLI (skills.sh) को npx के माध्यम से चलाता है — स्थानीय रूप से Node.js और कम से कम एक इंस्टॉल किया गया skills-संगत एजेंट (Claude Code, Cursor, Codex, …) ज़रूरी है। यह मानता है कि रिपॉज़िटरी agentskills.io फ़ॉर्मैट का पालन करती है।

7 months ago
90 stars
MIT
7 days ago को अपडेट किया गया
सोर्स देखें