Analyzing code scopes: Counting independent recomposition areas

Report a typo

How many independent recomposition scopes are in the following code snippet? (count only scopes, not composable functions)

@Composable
fun MyComposable() {
    Box {

        Text(text = "Inside the Box")

        Column {

            Text(text = "Inside The Column")

            Button(onClick = { /*TODO*/ }) {
                Text(text = "Button's content")
            }
        }
        Surface {
            
            Text(text = "Inside The Surface")
        }

    }
}
Select one option from the list

Create a free account to access the full topic