Skip to content

Instantly share code, notes, and snippets.

@lelandrichardson
Last active August 27, 2020 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lelandrichardson/c23efbae27399e17bb89be4f09c3e091 to your computer and use it in GitHub Desktop.
Save lelandrichardson/c23efbae27399e17bb89be4f09c3e091 to your computer and use it in GitHub Desktop.
@Composable
fun App(appData: AppData) {
val derivedData = compute(appData)
Header()
if (appData.isOwner) {
EditButton()
}
Body {
for (item in derivedData.items) {
Item(item)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment