What problem does it solve?
Modern React development can be complex, leading to inconsistent code, performance issues, and difficult maintenance. This Skill provides a comprehensive guide to best practices, helping you build scalable, high-performance React/TypeScript applications with clear patterns for data fetching, styling, and file organization.
Core Features & Use Cases
- Suspense-First Data Fetching: Leverage
useSuspenseQuery and Suspense boundaries to eliminate manual loading states and prevent layout shifts.
- Modular File Organization: Structure your codebase with
features/ and components/ directories, ensuring maintainability and reusability.
- MUI v7 Styling & Routing: Implement consistent UI with MUI v7's
sx prop and manage application flow with TanStack Router's file-based routing.
- Use Case: You need to build a new user profile page. Use this Skill to quickly set up the component structure, implement Suspense-based data fetching for user data, apply MUI v7 styling, and integrate it into the TanStack Router, all while adhering to performance best practices.
Quick Start
Generate a new React component named UserProfileCard that fetches user data using useSuspenseQuery and displays it within a SuspenseLoader boundary, following the recommended component structure.