Created
December 30, 2019 05:15
-
-
Save IntegerMan/3d933bf4b177505db0e48f63eca6df1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// This is the Reducer Elmish.WPF calls to generate a new model based on a message and an old model | |
let update (msg: MessageType) (model: Model) : Model = | |
match msg with | |
| ButtonClicked -> { model with ClickCount = model.ClickCount + 1} | |
| Reset -> init() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment