Loading...
Loading...
Principal-engineer-level React refactoring patterns for eliminating code smells. Covers prop drilling, state explosion, component composition, abstraction quality, coupling, hooks, rendering patterns, and testability. Use when refactoring existing React codebases, reviewing PRs for architectural issues, or identifying technical debt in React applications.
npx skill4agent add pproenca/dot-skills react-code-smells| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | State Architecture | CRITICAL | |
| 2 | Component Composition | CRITICAL | |
| 3 | Abstraction Quality | HIGH | |
| 4 | Coupling & Cohesion | HIGH | |
| 5 | Hook Hygiene | MEDIUM-HIGH | |
| 6 | Render Patterns | MEDIUM | |
| 7 | Side Effect Management | MEDIUM | |
| 8 | Testability | LOW-MEDIUM | |
state-prop-drilling-compoundstate-prop-drilling-compositionstate-derived-calculationstate-machine-complexstate-colocationstate-reducer-consolidationstate-context-selectorstate-url-synccomp-render-props-extractioncomp-slots-over-propscomp-god-component-splitcomp-controlled-uncontrolledcomp-headless-extractioncomp-props-spreadingcomp-polymorphic-ascomp-children-validationabs-premature-abstractionabs-over-configurationabs-extract-custom-hookabs-inline-vs-extractabs-wrong-abstraction-fixabs-utility-vs-domaincouple-colocation-filescouple-dependency-injectioncouple-interface-segregationcouple-circular-depscouple-stable-importshook-dependency-stabilityhook-composition-over-sizehook-return-object-vs-tuplehook-conditional-usagehook-naming-conventionsrender-conditional-early-returnrender-list-key-stabilityrender-avoid-inline-objectsrender-fragment-cleanupeffect-to-event-handlereffect-cleanup-requiredeffect-single-responsibilityeffect-avoid-unnecessarytest-seam-creationtest-behavior-over-implementationtest-extract-for-testabilitytest-mock-boundariesreactreact-principle-engineerreact-hook-form