State Reducer Pattern Using reducer functions to handle complex state transitions with predictable logic.