using-reducers
CommunityTackle complex React state with useReducer
Authordjankies
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Teaches useReducer for complex state logic in React 19. Use when state updates depend on previous state, multiple related state values, or complex update logic.
Core Features & Use Cases
- Structured state management: central reducer to orchestrate state transitions.
- Predictable updates: rely on dispatched actions rather than scattered setState calls.
- Use case: manage a multi-field form with dependent fields and a reset action.
Quick Start
Run sample counter with a reducer to handle increment, decrement, and reset. Refer to the code snippet in the Skill body for a complete example.
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: using-reducers Download link: https://github.com/djankies/claude-configs/archive/main.zip#using-reducers 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.