react-effects
OfficialSmart rules for React's useEffect.
Authorcoder
Version1.0.0
Installs0
System Documentation
What problem does it solve?
The guidelines help developers decide when to apply React's useEffect and when alternative approaches are more appropriate, reducing unnecessary side effects and rendering costs.
Core Features & Use Cases
- Decision-tree guidance for common scenarios such as data fetching on mount, subscriptions, DOM interactions, and event handling
- Clear identification of anti-patterns to avoid and recommended patterns for safe component lifecycles
- Practical examples illustrating correct use of useEffect placement and cleanup
Quick Start
Read the decision tree and implement useEffect only for cases that involve external data, subscriptions, or DOM side effects.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: react-effects Download link: https://github.com/coder/mux/archive/main.zip#react-effects Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.