-
-
Save davidedelpapa/f5fea2b0ee27d82d5f85bf3ab0adea4f 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.items.push(random()), | |
Msg::RemoveOne => { | |
self.items.pop(); | |
} | |
} | |
true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment