Created
October 2, 2022 14:41
-
-
Save Skyyo/0ce87fd11379c14d377cc1d78e9739a8 to your computer and use it in GitHub Desktop.
perf_snippet_12
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 StateReadsInlinedComposablesScreen() { | |
var count by remember { mutableStateOf(0) } | |
Column { | |
Text(text = "count: $count") | |
Button(onClick = { count++ }) { | |
Text(text = "count++") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment