mutableStateOf() tạo một state object có thể quan sát, kích hoạt recomposition khi thay đổi. remember lưu cache giá trị state qua các lần recomposition để không bị tạo lại mỗi lần.
Kết hợp lại: `val count = remember { mutableStateOf
- }
hoặc ngắn gọn hơn làvar count by remember { mutableStateOf - }
. Khicount` thay đổi, chỉ các composable đang đọc nó mới recompose, không phải cả màn hình
mutableStateOf() creates an observable state object that triggers recomposition when changed. remember caches the state value across recompositions so it doesn't get recreated each time.
Together: `val count = remember { mutableStateOf
- }
or the shortervar count by remember { mutableStateOf - }
. Whencount` changes, only composables reading it recompose, not the entire screen