-
-
Save skydoves/f93d15e360e328b10474d4c220d0478f to your computer and use it in GitHub Desktop.
counter
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
@Composable | |
fun Counter() { | |
var count by remember { mutableStateOf(0) } | |
Column { | |
Text("Count: $count") | |
Button(onClick = { count++ }) { | |
Text("Increase") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment