A small compose quiz! -&gt; <https://twitter.com/t...
# compose
t
z
Not sure but my intuition tells me it must be bcd, a is the only thing that is skippable. Blink twice if thats correct? 😄
âž• 1
👌 1
u
well let me help you, it's only display the Text and the button. The function in a,b,c and d - don't display because println is not composable function unless you put a Composable function like Text or other components. WC
c
Correct me if I am wrong, when the button is clicked, the only two parts that get recalled (recomposed) are the
Button {}
and the
Text()
. So when the button is clicked, none of abcd get called again. However, the console print statement of abcd all appeared once when first time encounters the composition of
Counter
s