pub fn reduce(state: &mut TuiState, action: Action) -> Vec<Effect>
Pure deterministic state transition.