react-anti-patterns
Installation
SKILL.md
React Anti-patterns
Overview
18 anti-patterns commonly found in AI-generated and junior React code. Organized by detection difficulty — hard-to-detect bugs first.
Hard to Detect
1. Stale Closure
// ❌ count is always 0 in the timeout — closure captured old value
const handleDelayedAlert = () => {
setTimeout(() => alert(`Count: ${count}`), 3000);
};