What problem does it solve?
Modern React development can be complex, leading to inconsistent code, performance bottlenecks, and difficult-to-maintain applications. This skill provides comprehensive guidelines and patterns to build high-quality, performant, and scalable React/TypeScript frontend applications, ensuring consistency and reducing development friction.
Core Features & Use Cases
- Suspense-First Data Fetching: Implement
useSuspenseQuery and Suspense boundaries to eliminate loading spinners and prevent layout shifts, significantly improving user experience and perceived performance.
- Optimized Performance: Leverage
React.lazy(), useMemo, useCallback, and React.memo to ensure fast initial loads, smooth interactions, and efficient component rendering.
- Structured Codebase: Organize features with clear
api/, components/, hooks/, and types/ directories, promoting maintainability, team collaboration, and easier navigation.
- Use Case: You're building a new dashboard feature. This skill guides you through setting up the feature directory, implementing data fetching with
useSuspenseQuery, styling with MUI v7, and ensuring lazy loading for optimal performance, all while adhering to TypeScript best practices.
Quick Start
I need to create a new React component that fetches user data. Provide the template for a modern component using useSuspenseQuery and proper styling.