Join Slack
Powered by
why use much top-level function in compose?
# compose
z
zhagnfei
08/17/2021, 2:32 AM
why use much top-level function in compose?
f
Fudge
08/17/2021, 4:40 AM
Same reason we use much variables in compose
z
Zach Klippenstein (he/him) [MOD]
08/17/2021, 2:16 PM
I think the simplest answer is because we can. Things that were top-level classes as classic Android views (
TextView
,
LinearLayout
) are top-level functions in compose (
Text
,
Column
).
2
Views
Open in Slack
Previous
Next