Something that trips up a lot of people when theyโ€™re first learning Compose is remembering all the d...
z
Something that trips up a lot of people when theyโ€™re first learning Compose is remembering all the different bits of magic that go into making lines like this:
Copy code
var text by remember { mutableStateOf("") }
I made a little cheat sheet to help break it down, and hopefully serve as a quick reference if you forget.
๐Ÿ˜ฝ 1
โค๏ธ 29
๐Ÿ‘Œ๐Ÿผ 3
๐Ÿ‘Œ 17
l
๐Ÿ‘ fyi typo in the first line.
z
Whoops, thanks!
l
Copy code
State is to MutableState as List is to MutableList.
as -> what
Great article BTW, and thanks for reminding about the state holding class and using delegates here.
z
@louiscad Thanks for the feedback! Re: that word replacement, โ€œa is to b as x is to yโ€ is a common way to state analogies.
today i learned 1
t
This cheat sheet is great, thank you for putting it together ๐Ÿ™๐Ÿผ !
๐Ÿ‘ 1