What problem does it solve?
Modern frontend projects suffer from inconsistent patterns, layout shifts, and inefficient data fetching; these guidelines provide a coherent, production-ready approach to building React + TypeScript frontends that use Suspense, lazy loading, and consistent styling to reduce bugs and improve performance.
Core Features & Use Cases
- Suspense-based data fetching: patterns for useSuspenseQuery, cache-first strategies, parallel queries, and error handling with boundaries.
- Routing & code-splitting: folder-based TanStack Router routes with lazy-loaded page components and breadcrumb loaders.
- Styling & UI conventions: MUI v7 sx prop usage, responsive Grid size syntax, inline vs separate styles guidance, and theme-aware patterns.
- Component & file organization: feature-oriented directories (api/, components/, hooks/, helpers/, types/), import aliases, component templates, and export patterns.
- Performance & UX: SuspenseLoader usage to avoid early returns/layout shift, memoization, debounced search, and cleanup best practices for memory safety.
Quick Start
Use the ck:frontend-development guidelines to create a new feature folder with a lazy route, SuspenseLoader wrapping, a useSuspenseQuery hook, and MUI v7 styled components.