Android Architecture

Jetpack Compose basics

Compose describes what the UI should look like for a given state. When state changes, Compose recomposes affected functions.

kotlin
@Composable
fun Greeting(name: String) {
    Text(text = "Hello $name")
}
  • Keep composables small and focused.
  • Hoist state when multiple components need to coordinate.
  • Do not perform side effects directly during composition.
Lesson complete?Use the next lesson to continue the learning path.