
React Best Practices
mastra-ai/mastraOfficial
Authoritative React performance guide routing 27 rules across nine prioritized categories for writing and reviewing components.
- skills.sh installs
- 2.8K
- GitHub stars
- 29.7K
- last updated
- Aug 21, 2026
What it does
- Covers waterfall elimination, bundle size, data fetching, re-render, rendering, JavaScript, structure, testing, and type-safety rules
- Lists critical patterns first, such as
Promise.all()for independent async work and direct imports instead of barrel files - Enforces no
astype assertions,undefinedovernullfor absence, and nouseMemooruseCallbackwithout profiler evidence - Designed for reviewing and refactoring React code, with detailed rule files loaded on demand from
references/rules/
Install
$ npx -y skills add mastra-ai/mastra --skill react-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
React Best Practices
Overview
Routing and priority guide for React performance and quality, containing 27 rules across 9 categories. Rule files hold the detailed explanations, examples, review smells, and impact metrics.
When to Apply
Reference these guidelines when:
- Writing new React components
- Implementing data fetching
- Reviewing code for performance issues
- Refactoring existing React code
- Optimizing bundle size or load times
Priority-Ordered Guidelines
Rules are prioritized by impact:
Details
- Repository
- github.com/mastra-ai/mastra
- Categories
- Frontend & UI Code, Code Review & Quality
- First seen
- May 16, 2026
More from mastra-ai/mastra
All 4Similar to React Best Practices
More Frontend & UI Code
vercel-react-best-practicesvercel-labs/agent-skills905.6K installsPerformance guide of 70 React and Next.js rules, ordered by impact from waterfalls to advanced patterns.
frontend-react-best-practicessergiodxa/agent-skills1.2K installsReact performance rules and composition patterns covering re-renders, bundle size, and hydration pitfalls.
react-performanceaffaan-m/ecc6.4K installsReact and Next.js performance rules grouped into 8 priority categories, from waterfalls to advanced patterns.
react-patternsjezweb/claude-skills1.3K installsReact 19 performance patterns and composition rules that prioritise waterfalls, bundle size, and re-render prevention.
react-optimisepproenca/dot-skills410 installsApplication-level React performance guide covering compiler adoption, bundle splitting, rendering, and Core Web Vitals.
r3f-best-practicesemalorenzo/three-agent-skills1.7K installsReact Three Fiber performance and ecosystem guidance covering 70+ prioritized rules across 12 categories.