react-useeffect
Skill2.5k starsChanged 10 months agoMITView on GitHub
React useEffect best practices from official docs. Use when writing/reviewing useEffect, useState for derived values, data fetching, or state synchronization. Teaches when NOT to use Effect and better alternatives.
7 other projects use a version of this, 2 of them edited.
Trending
More talk lately.about the whole repository
Most recently taken up by
- bartstc/vite-ts-react-templateedited, first seen Jul 25, 2026
- miptah21/skillsedited, first seen May 26, 2026
- nbirkner/digital-brainword for word, first seen Apr 12, 2026
- suhailkakar/web3-godmode-configword for word, first seen Feb 12, 2026
- mm-mazhar/agent-skills-configword for word, first seen Feb 10, 2026
- viclafouch/pasiopadelclubtheir own version, first seen Jan 22, 2026
Who's talking about softaworks/agent-toolkit
- sudosubin/agents.nix“codex-plugins.github.softaworks.agent-toolkit: init at 0-unstable-2026-03-05”GitHub · Oct 4, 2026
- sudosubin/agents.nix“claude-code-plugins.github.softaworks.agent-toolkit: init at 0-unstable-2026-03-05”GitHub · Oct 4, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.softaworks.agent-toolkit: init at 0-unstable-2026-03-05”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.softaworks.agent-toolkit: init at 0-unstable-2026-02-08”GitHub · Oct 2, 2026
- eranroseman/agent-plugins“Curate skills from https://github.com/softaworks/agent-toolkit”GitHub · Sep 12, 2026
The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 40
Talked about on GitHub (40 times).
On GitHub · 40
- Oct 4, 2026codex-plugins.github.softaworks.agent-toolkit: init at 0-unstable-2026-03-05 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-plugins.github.softaworks.agent-toolkit: init at 0-unstable-2026-03-05 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-marketplaces.github.softaworks.agent-toolkit: init at 0-unstable-2026-03-05 — sudosubin/agents.nix0 reactions
- Oct 2, 2026agent-skills.github.softaworks.agent-toolkit: init at 0-unstable-2026-02-08 — sudosubin/agents.nix0 reactions
- Sep 12, 2026Curate skills from https://github.com/softaworks/agent-toolkit — eranroseman/agent-plugins0 reactions · 2 comments
35 more on GitHub
- Apr 25, 2026Audit candidate: softaworks/agent-toolkit — xiaolai/nlpm0 reactions · 3 comments
- Mar 31, 2026Remove unecessary useEffects from frontend — superplanehq/superplane0 reactions · 2 comments
- Mar 9, 2026[SUBMISSION] softaworks/agent-toolkit — ProSkillsMD/proskills0 reactions · 1 comment
- Feb 2, 2026New skill: /softaworks-react-dev (medium risk) — aiskillstore/marketplace0 reactions
- Feb 2, 2026New skill: /softaworks-react-useeffect (medium risk) — aiskillstore/marketplace0 reactions
- Feb 2, 2026New skill: /softaworks-game-changing-features (medium risk) — aiskillstore/marketplace0 reactions
- Feb 2, 2026New skill: /softaworks-naming-analyzer (medium risk) — aiskillstore/marketplace0 reactions
- Feb 2, 2026New skill: /softaworks-openapi-to-typescript (medium risk) — aiskillstore/marketplace0 reactions
- Feb 2, 2026New skill: /softaworks-database-schema-designer (medium risk) — aiskillstore/marketplace0 reactions
- Jan 28, 2026New skill: /softaworks-c4-architecture (safe risk) — aiskillstore/marketplace0 reactions
- Jan 28, 2026New skill: /softaworks-professional-communication (safe risk) — aiskillstore/marketplace0 reactions
- Jan 28, 2026New skill: /softaworks-plugin-forge (safe risk) — aiskillstore/marketplace0 reactions
- Jan 28, 2026New skill: /softaworks-feedback-mastery (safe risk) — aiskillstore/marketplace0 reactions
- Jan 28, 2026New skill: /softaworks-difficult-workplace-conversations (safe risk) — aiskillstore/marketplace0 reactions
- Jan 28, 2026New skill: /softaworks-humanizer (safe risk) — aiskillstore/marketplace0 reactions
- Jan 27, 2026Integrate humanizer guidelines for documentation quality — shelbeely/ADHD-Closet0 reactions
- Jan 26, 2026New skill: /softaworks-command-creator (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-marp-slide (low risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-skill-judge (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-writing-clearly-and-concisely (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-crafting-effective-readmes (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-gepetto (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-mermaid-diagrams (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-reducing-entropy (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-ship-learn-next (safe risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-codex (safe risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-daily-meeting-update (safe risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-domain-name-brainstormer (safe risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-commit-work (safe risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-agent-md-refactor (safe risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-session-handoff (low risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-dependency-updater (low risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-qa-test-planner (low risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-meme-factory (low risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-gemini (low risk) — aiskillstore/marketplace0 reactions
Other versions7 projects use a version of this.
Word for word · 4
- jarrodwatts/claude-code-config★ 1.1k100% same
- suhailkakar/web3-godmode-config★ 1100% same
- mm-mazhar/agent-skills-config★ 0100% same
- nbirkner/digital-brain★ 0100% same
Edited · 2
- bartstc/vite-ts-react-template★ 122100% same
- miptah21/skills★ 297% same
Wrote their own version · 1
- viclafouch/pasiopadelclub★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-md-refactorSkill
- backend-to-frontend-handoff-docsSkill
- c4-architectureSkill
- codexSkill
- command-creatorSkill
- commit-workSkill
- crafting-effective-readmesSkill
- daily-meeting-updateSkill
- database-schema-designerSkill
- datadog-cliSkill
- dependency-updaterSkill
- design-system-starterSkill
- difficult-workplace-conversationsSkill
- domain-name-brainstormerSkill
- draw-ioSkill
- excalidrawSkill
- feedback-masterySkill
- frontend-to-backend-requirementsSkill
- game-changing-featuresSkill
- geminiSkill
- gepettoSkill
- humanizerSkill
- jiraSkill
- lesson-learnedSkill
- marp-slideSkill
- meme-factorySkill
- mermaid-diagramsSkill
- muiSkill
- naming-analyzerSkill
- openapi-to-typescriptSkill
- perplexitySkill
- plugin-forgeSkill
- professional-communicationSkill
- qa-test-plannerSkill
- react-devSkill
- reducing-entropySkill
- requirements-claritySkill
- session-handoffSkill
- ship-learn-nextSkill
- skill-judgeSkill
- web-to-markdownSkill
- writing-clearly-and-conciselySkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Handling user events: - Use event handlers, you know exactly what happened
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You Might Not Need an Effect
Effects are an escape hatch from React. They let you synchronize with external systems. If there is no external system involved, you shouldn't need an Effect.
Quick Reference
| Situation | DON'T | DO |
| Derived state from props/state | useState + useEffect | Calculate during render |
| Expensive calculations | useEffect to cache | useMemo |
| Reset state on prop change | useEffect with setState | key prop |
| User event responses | useEffect watching state | Event handler directly |
| Notify parent of changes | useEffect calling onChange | Call in event handler |
| Fetch data | useEffect without cleanup | useEffect with cleanup OR framework |
When You DO Need Effects
- Synchronizing with external systems (non-React widgets, browser APIs)
- Subscriptions to external stores (use
useSyncExternalStorewhen possible) - Analytics/logging that runs because component displayed
- Data fetching with proper cleanup (or use framework's built-in mechanism)
When You DON'T Need Effects
- Transforming data for rendering - Calculate at top level, re-runs automatically
- Handling user events - Use event handlers, you know exactly what happened
- Deriving state - Just compute it:
const fullName = firstName + ' ' + lastName - Chaining state updates - Calculate all next state in the event handler
Decision Tree
Need to respond to something?
├── User interaction (click, submit, drag)?
│ └── Use EVENT HANDLER
├── Component appeared on screen?
│ └── Use EFFECT (external sync, analytics)
├── Props/state changed and need derived value?
│ └── CALCULATE DURING RENDER
│ └── Expensive? Use useMemo
└── Need to reset state when prop changes?
└── Use KEY PROP on componentDetailed Guidance
- Anti-Patterns - Common mistakes with fixes
- Better Alternatives - useMemo, key prop, lifting state, useSyncExternalStore
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

