---
# System prepended metadata

title: Writting in Compose

---

# Writting in Compose

DI in the directlly in Fragment.

In the screen pass the view model reference

In the screen section we should keep lifecycle componenst, viewModels and states

Remember and rememberSavable (uses for configuration chagnes)


We should keep only simple (primitive types) in the screen (eg. mutableStateOf<boolean>)

Interface ViewModelState
    
Depending on the State we should render our Composable