Next.js App Design Guide
How to build Next.js frontend applications with django-cfg — directory structure, generated API clients, SSR hydration, state management, and real-time communication. For Django backend patterns see App Design Guide, for module packaging see Module Design Guide.
Canonical directory structure, naming conventions, TypeScript aliases, route definitions, and server vs client component split
Data LayerOrval operations, React Query v5 hooks/query keys, Zod validation, MSW, and stable runtime/barrel exports
SSR & HydrationServer Component prefetching, React Query v5 dehydration, force-dynamic pages, and metadata generation
State ManagementContext architecture, provider composition, URL-first filter state, and when to use Zustand
Component PatternsuseMemo data preparation, component structure order, decomposition patterns, and type safety
Analytics@djangocfg/analytics — one route listener, N transports. Pageviews, custom events, and GA4 as an optional destination
Library-specific patterns — Zustand, forms, i18n, drag and drop, animations, UI components, Tailwind v4, and extensions