Created
April 12, 2022 09:33
-
-
Save JoseAlcerreca/d692db965420c58a6a4ef555d622376d 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 MyScreen(val viewModel: MyViewModel = viewModel()) { | |
val data by viewModel.data.collectAsState("Loading") | |
Text(greeting) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment