What problem does it solve?
Modern frontend development with Next.js 16 and React 19.2 can be complex, leading to inconsistent code, performance bottlenecks, and difficulty in adopting new features. This Skill provides clear, actionable guidelines to streamline development, ensure best practices, and maintain high-quality, performant applications.
Core Features & Use Cases
- Server Components First: Leverage Next.js 16's Server Components for optimal performance and reduced client-side JavaScript.
- React 19.2 Features: Integrate
useEffectEvent for stable callbacks, Activity for non-blocking loading states, and cache() for server-side data deduplication.
- Tailwind CSS v4: Standardized styling with
cn() and tailwind-variants for consistent UI.
- Clerk Authentication: Secure user authentication patterns for both server and client components.
- Use Case: When starting a new feature, use this Skill to quickly understand how to structure your pages, fetch data, apply styling, and implement authentication, ensuring adherence to Quantum Skincare's modern frontend stack.
Quick Start
To create a new authenticated page for user settings:
- Create
app/(private)/settings/page.tsx.
- Default to a Server Component (
async function).
- Fetch user data using
currentUser() from Clerk and backendJson().
- Apply Tailwind CSS v4 for styling.
- Wrap async content in
<Suspense> with a loading.tsx fallback.