What problem does it solve?
This Skill provides best practices for Next.js development, addressing server-side and client-side performance, data fetching, and routing challenges.
Core Features & Use Cases
- Server vs Client Components: Guidance on when to use server vs. client components for optimal performance.
- Data Fetching Patterns: Strategies for static, revalidate, and no-store data fetching.
- Routing Principles: File conventions and organization for effective routing.
- API Routes: Best practices for handling API routes with proper validation and error handling.
- Performance Principles: Image optimization and bundle optimization techniques.
- Metadata: Static vs. dynamic metadata strategies for SEO and performance.
- Caching Strategy: Request, data, and full route cache layers with revalidation options.
- Server Actions: Best practices for handling form submissions and data mutations.
- Anti-Patterns: Identification of common pitfalls and how to avoid them.
- Project Structure: Recommended directory structure for maintainable Next.js projects.
Quick Start
Implement server-side rendering in your Next.js application by wrapping your main component with the getServerSideProps function.