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/claude-code-course-resources
bun-first
Describes efficient usage of Bun and Bun APIs instead of Node.js (and its APIs)
1modern-tailwind
Build clean, scalable UIs with Tailwind CSS using modern utilities and variants
1clean-typescript
Write clean, efficient TypeScript code that follows common best practices
1web-security
Enforce web security and avoid security vulnerabilities
1use-modern-browser-apis
Utilize built-in browser APIs (like Popover API, View Transitions etc) instead of building features manually via JavaScript
1modern-accessible-html-jsx
Write clean, modern, and highly accessible HTML & JSX code, using semantically correct elements and attributes
1