reduce

abstract fun reduce(parent: ParentState, action: Action): ChildState

Returns the next child state, given the parent state and an action to handle.