-
-
Save mukeshsolanki/a67a62d14992b852e559ef5718aad3c1 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
// ❌ | |
@Composable | |
fun HelloWorld(modifier: Modifier = Modifier, sayHi: MutableState<String>) { | |
Column(modifier = modifier) { | |
Text(sayHi.value) | |
} | |
} | |
// ✅ | |
@Composable | |
fun HelloWorld(modifier: Modifier = Modifier, sayHi: String) { | |
Column(modifier = modifier) { | |
Text(sayHi) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment