What problem does it solve?
This Skill enforces strict TypeScript, React best practices, and clean architecture principles to prevent common pitfalls and ensure maintainable, high-quality frontend code.
Core Features & Use Cases
- Strict Typing: Prevents the use of
any and unknown, ensuring all types are explicitly defined.
- Component Best Practices: Guides the creation of pure, single-responsibility function components.
- Hook Enforcement: Adheres to the Rules of Hooks, preventing conditional or improperly placed hooks.
- Architecture Guidance: Promotes separation of concerns for types, API logic, and side effects.
- Use Case: When refactoring a complex React component, this skill will identify and suggest corrections for any type violations, improper hook usage, or business logic embedded directly in the JSX, ensuring the refactored code is clean and robust.
Quick Start
Use the react-ts-expert skill to review and refactor the provided React component code for type safety and adherence to best practices.