State

State (kotlin):
• State is the data that represents the current state of a UI user (e.g. TextField, Button, Checkbox).
• When there is user interaction (for example, typing into the TextField), the state changes and Compose automatically redraws the corresponding UI component.

Example
                        var baslik by remember { mutableStateOf("") }
                    

mutableStateOf("")

Creates a mutable state with an initial value of "" (empty string).

remember { ... }


• Compose functions are called again on every UI update.
• remember says: “I remember this value, let it not be lost even if there is a recomposition.”