Created
March 27, 2022 07:40
-
-
Save takahirom/25bb0fdc16ed9cc036eb87beba47f764 to your computer and use it in GitHub Desktop.
app module
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 Composable1(articles: Articles) { | |
Text(text = "Hello $articles!") | |
} | |
@Stable | |
data class UiModel(val articles: Articles) | |
@Composable | |
fun Composable2(uiModel: UiModel) { | |
Text(text = "Hello $uiModel!") | |
uiModel.articles.articles.forEach { | |
Composable3(it) | |
} | |
} | |
@Composable | |
fun Composable3(article: Article) { | |
Text(text = "Hello $article!") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment