modern-best-practice-react-components
Installation
SKILL.md
Writing React Components
We're using modern React (19+) and we're following common best practices focused on clarity, correctness, and maintainability.
Component Structure & Style
- PREFER small, focused components with a single responsibility
- PREFER named
functioncomponents over arrow functions- Exception: anonymous callbacks, inline render props, and closures
- PREFER explicit return types and props typing (TypeScript) where applicable
- Keep components flat and readable; avoid deeply nested JSX
- Group related logic together (event handlers, derived values, helpers)
State Management
Related skills
More from academind/ai-config
web-security
Enforce web security and avoid security vulnerabilities
114modern-best-practice-nextjs
Build modern Next.js apps with App Router and best practices
52clean-typescript
Write clean, efficient TypeScript code that follows common best practices
46modern-tailwind
Build clean, scalable UIs with Tailwind CSS using modern utilities and variants
32use-modern-browser-apis
Utilize built-in browser APIs (like Popover API, View Transitions etc) instead of building features manually via JavaScript
28modern-accessible-html-jsx
Write clean, modern, and highly accessible HTML & JSX code, using semantically correct elements and attributes
27