Jetpack Compose is the next-generation Android UI toolkit that helps to create UIs with very little effort. Apart from UI components, it also provides a kind of observer pattern out of the box. In Jetpack Compose, this is called State. Whenever the State changes, the composable will be recomposed. …