Created
March 29, 2023 08:16
-
-
Save alohaabhi/e803e4ae6dd72a8a091af65e56b7d391 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
var count by remember { mutableStateOf(1) } | |
Text(text = "The count is $count.") | |
Button(onClick = { | |
count = count.inc() | |
}) { | |
Text(text = "Hit") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment