public override void StateChanged() { FirstPageState state = dispatcher.State.FirstPage; Input = state.Input; Output = state.Output; }
public static FirstPageState Reduce(FirstPageState state, ReduxAction action) { switch (action) { case InputChangedAction inputChanged: return(state.Clone(input: inputChanged.Value)); case ClickMeAction clickMe: return(state.Clone(output: $"Yolo: {state.Input}")); default: return(state); } }