react-best-practices
Installation
SKILL.md
React Best Practices
Applies React conventions that keep components derived, readable, and easy to test.
Project conventions override these defaults when they are already established. When editing TSX, also apply TypeScript best practices.
Review Workflow
- Check whether state can be derived from props, query data, or existing state.
- Move avoidable effect logic into derived values or event handlers.
- Simplify JSX by extracting components or using early returns.
- Check prop interfaces, destructuring, callback names, and prop spreading.
- Prefer React Query for async server state and repeated fetching.
Do Not Use For
- Non-React frontend work unless React code is involved.
- CSS-only or visual-design-only changes unless component structure is part of the task.