Skip to content

Instantly share code, notes, and snippets.

@lelandrichardson
Created August 27, 2020 21:55
Show Gist options
  • Save lelandrichardson/ffd96cdfef1b6121043e55c3145830d3 to your computer and use it in GitHub Desktop.
Save lelandrichardson/ffd96cdfef1b6121043e55c3145830d3 to your computer and use it in GitHub Desktop.
@Composable fun App() {
val result = getData()
if (result == null) {
Loading(...)
} else {
Header(result)
Body(result)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment