-
-
Save davidedelpapa/ba933e224192cc3ad41ae91bcb0c85dc 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
fn update(&mut self, msg: Self::Message) -> ShouldRender { | |
match msg { | |
Msg::AddOne => self.counter += 1, | |
Msg::RemoveOne => self.counter -= 1, | |
} | |
true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment