What problem does it solve?
This Skill provides a comprehensive set of modern patterns and best practices for developing React and TypeScript frontend applications, ensuring consistency, maintainability, and performance.
Core Features & Use Cases
- Component Patterns: Standardized structure for React components using
React.FC, lazy loading, and Suspense.
- Data Fetching: Guidelines for
useSuspenseQuery and cache-first strategies with TanStack Query.
- File Organization: Clear structure for
features/ and components/ directories.
- Styling: Best practices for MUI v7, inline vs. separate styles, and theme integration.
- Routing: TanStack Router implementation with folder-based routing and lazy loading.
- Loading & Error States: Strategies for handling loading and errors using Suspense and MUI Snackbar.
- Performance: Memoization (
useMemo, useCallback), debouncing, and memory leak prevention.
- TypeScript: Strict mode, explicit types, and common utility types.
- Use Case: When starting a new frontend feature, consult this Skill to ensure all components, data fetching, routing, and styling adhere to established project standards, leading to a more robust and scalable application.
Quick Start
Follow the component structure template provided in the SKILL.md for creating a new React component.