react-state-and-effects-discipline · git:20260621.2caaecc · 2026-06-21 · sha256 59c0ab80421b23f0

react-state-and-effects-discipline git:20260621.2caaeccA

Immutable. This exact content is served forever at /api/v1/blob/59c0ab80421b23f0.

---
name: react-state-and-effects-discipline
description: Discipline React state, derived data, effects, refs, reducers, context, and event handlers. Use when components have duplicated state, unnecessary useEffect, prop-to-state syncing, stale closures, event logic in effects, external subscriptions, DOM integration, network sync, or complex UI state.
---

# React State And Effects Discipline

## Use This Skill

Use this skill for use react state and effects only where they belong.

## Operating Contract

1. Inspect the existing project before changing code.
2. Identify the router/framework, entry files, styling system, and interaction system.
3. Keep premium visual standards active: no generic copy, no default-looking UI, no unfinished states.
4. Follow existing project conventions unless a change clearly improves the result.
5. Run available checks and visually inspect responsive output when the change affects UI.

## Required Reference

Read [references/react-state-and-effects-discipline-guide.md](references/react-state-and-effects-discipline-guide.md) before making architectural or visible UI changes with this skill.