Skip to content

This Project explains the core concepts related to using State in Jetpack Compose.

Notifications You must be signed in to change notification settings

Jesil-OT/Wellness

Repository files navigation

This project explains the core concepts related to using State in Jetpack Compose. It shows you how the app's state determines what is displayed in the UI, how Compose updates the UI when state changes by working with different APIs, how to optimize the structure of our composable functions, and using ViewModels in a Compose world.

What i learn

  • How to think about state and events in a Jetpack Compose UI.
  • How Compose uses state to determine which elements to display on the screen.
  • What state hoisting is.
  • How stateful and stateless composable functions work.
  • How Compose automatically tracks state with the State API.
  • How memory and internal state work in a composable function: using the remember and rememberSaveable APIs.
  • How to work with lists and state: using the mutableStateListOf and toMutableStateList APIs.
  • How to use ViewModel with Compose.

This project was done with the help of this Codelab on state

About

This Project explains the core concepts related to using State in Jetpack Compose.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages