react-no-use-effect
Installation
SKILL.md
No useEffect
Never call useEffect directly. Use derived state, event handlers, data-fetching libraries, or useMountEffect instead.
Quick Reference
- Repo linting:
bun lint --format json <package-path> - Escape hatch hook:
useMountEffectfrom@onequery/ui/hooks/use-mount-effect - React docs: You Might Not Need an Effect
- Origin: https://x.com/alvinsng/status/2033969062834045089
Comment: the repo currently has
useMountEffect, but it does not appear to have a global lint rule that already bansuseEffect. Treat this skill as the policy source unless that restriction is added later.