Caution: To use the viewModel() functions, add the androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1 dependency to your build.gradle file. Learn more about this function in our documentation for working with other libraries in Compose.