React Best Practices
SkillMediaDiagnose React performance problems or review and improve state and effect design.
Use React Best Practices in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add React Best Practices and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the React Best Practices skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by ahonn/dotfiles in .claude/skills/react-best-practices/SKILL.md and read by Ahel’s review.
Performance patterns and guidelines from react.dev and Vercel Engineering.
Quick Reference (Priority Order)
CRITICAL - Must Follow
| Rule | Impact | Reference |
|---|---|---|
| Avoid unnecessary effects | Render cycles, bugs | effect-pitfalls.md |
| Eliminate waterfalls | First paint, TTI | async-waterfall-elimination.md |
| Parallel data fetching | Load time | async-parallel-requests.md |
| Avoid barrel imports | Bundle size | bundle-barrel-imports.md |
HIGH - Strongly Recommended
| Rule | Impact | Reference |
|---|---|---|
| React Compiler (19+) | Auto memoization | react-compiler.md |
| Dynamic imports | Code splitting | bundle-dynamic-import.md |
| Preload on user intent | Perceived latency | bundle-preload.md |
| Strategic memo() | Render perf | rerender-memo-strategy.md |
| Server caching | Server response | server-cache-patterns.md |
MEDIUM - Recommended
| Rule | Impact | Reference |
|---|---|---|
| State structure | Maintainability | state-structure.md |
| Immutable updates | Avoid mutation bugs | immutable-updates.md |
| Context splitting | Avoid rerenders | rerender-context-splitting.md |
| startTransition | UI responsiveness | rerender-transitions.md |
| Set/Map lookups | O(1) vs O(n) | js-set-map-lookups.md |
| Key patterns | List rendering | rendering-key-patterns.md |
LOW - Nice to Have
| Rule | Impact | Reference |
|---|---|---|
| content-visibility | Long list render | rendering-content-visibility.md |
| Hydration flicker | SSR stability | rendering-hydration-flicker.md |
| Hoist static JSX | Avoid re-creation | rendering-hoist-static-jsx.md |
Quick Decision Tree
React Issue?
├── Writing useEffect?
│ └── Check if needed → effect-pitfalls.md (CRITICAL)
├── Designing state?
│ └── Follow 5 principles → state-structure.md
├── Updating state?
│ └── Use immutable patterns → immutable-updates.md
├── Using React 19+?
│ └── Enable React Compiler → react-compiler.md
├── Slow initial load?
│ ├── Check for waterfalls → async-waterfall-elimination.md
│ ├── Check bundle size → bundle-barrel-imports.md
│ └── Preload on intent → bundle-preload.md
├── Slow interactions?
│ ├── Check re-renders → rerender-memo-strategy.md
│ ├── Check Context usage → rerender-context-splitting.md
│ └── Use transitions → rerender-transitions.md
├── Long list jank?
│ └── Use content-visibility → rendering-content-visibility.md
├── SSR flicker?
│ └── Inline script pattern → rendering-hydration-flicker.md
└── Slow server?
└── Check caching → server-cache-patterns.md
Reference Files
| File | Content |
|---|---|
| hooks-guide.md | Hook patterns, decision guides, pitfalls |
| effect-pitfalls.md | When NOT to use useEffect |
| react-compiler.md | React 19+ auto memoization |
| state-structure.md | 5 principles for state design |
| immutable-updates.md | Array/object update patterns |
| references/ | All reference files (19 total) |
Search rules: grep -l "keyword" references/
Signals
- GitHub stars
- 62
- Forks
- 2
- Last commit
- Sep 2026
Ahel review
K1binfo
installs-packages (in references/react-compiler.md)
Automated review, not a security audit. Ruleset v1+k2.
Advanced
- Item type
- skill
- Key
react-best-practices-ahonn- Source
- github.com/ahonn/dotfiles
Related picks
Skill · davila7
The pick for Reactreact-doctor
Skill · millionco
The pick for Reactlegacy-js
Skill · thedaviddias
The pick for JavaScriptmodern-javascript-patterns
Skill · wshobson
The pick for JavaScriptsetup-ts-deep-modules
Skill · mattpocock
The pick for TypeScripttypescript-pro
Skill · jeffallan
The pick for TypeScript