What problem does it solve?
This Skill streamlines the development of React applications by enforcing architectural best practices (Feature-Sliced Design), ensuring correct useEffect usage, and implementing efficient Zustand state management for complex UI states.
Core Features & Use Cases
- Architectural Guidance: Enforces Feature-Sliced Design (FSD) principles for maintainable code organization.
- State Management: Guides the use of Zustand for shared client state, avoiding global state for local UI needs.
- Effect Handling: Promotes correct
useEffect usage, treating it as an escape hatch for synchronization, not for derived state or event handling.
- UI States: Ensures robust handling of loading, error, empty, and success states for asynchronous operations.
- Use Case: Refactor a complex React feature to adhere to FSD, optimize state management with Zustand, and ensure all async operations display appropriate loading, error, and empty states.
Quick Start
Use the react-fsd-zustand-ui skill to refactor the UserProfile component to follow FSD principles and manage its state with Zustand.