What problem does it solve?
This Skill provides guidance and best practices for implementing modern React patterns within a Next.js 15 application, ensuring efficient, maintainable, and performant component architecture.
Core Features & Use Cases
- Component Strategy: Differentiates between Server and Client Components and when to use each.
- State Management: Demonstrates Context API patterns and provider nesting.
- Data Fetching: Illustrates TanStack Query for client-side fetching and mutations.
- Asynchronous Operations: Shows Suspense boundaries for handling loading states and Error Boundaries for robust error management.
- Performance: Covers
useCallback and avoiding unnecessary re-renders.
- Use Case: When building a new feature, use this Skill to understand the correct way to fetch data client-side using TanStack Query and display it within a Suspense boundary, ensuring a smooth user experience.
Quick Start
Consult the react-patterns skill for guidance on implementing a new client component that requires state management.