react-guidelines
Installation
SKILL.md
React Guidelines
This document outlines best practices for building robust, maintainable, and modern React applications with TypeScript.
1. General Principles
- Component Composition: Build small, focused components and compose them to build complex UIs.
- Unidirectional Data Flow: Data flows down (props), actions flow up (callbacks).
- Immutability: Treat state as immutable. Use functional updates and immutable patterns.
- Colocation: Keep related logic, styles, and tests close to the component.
2. TypeScript Integration
- Strict Typing: Always use
strict: trueintsconfig.json. avoidinganyensures type safety. - Props Interfaces: Define explicit interfaces for component props.
Related skills
More from stefanmermans/agent-config
python-guidelines
When dealing with python code, these guidelines must always be followed.
22markdown-validation
How to validate markdown files
21vue-guidelines
Essential guidelines for Vue.js development. Always follow these rules when working with Vue project.
19laravel-guidelines
When writing or reviewing code in a Laravel project, these guidelines must always be followed.
19general-coding-guidelines
This skill must always be used when writing or reviewing code or tests in any language or framework.
19markdown-guidelines
When creating or editing markdown files, these guidelines must always be followed.
3