Bites of Compose 1
Learn Jetpack Compose one bite at a time
I’m planning to write a series of short articles about Android’s Jetpack Compose UI framework. You can use it to test your understanding or maybe learn a few things along the way. Situation 1 Take a look at the Composable below, what will happen if the button is clicked? @Composable fun Situation1() { var name = "Guowei" Column { Text(name) Button(onClick = { name = "Hello" }) { Text("Change name!") } } } Answer Nothing.