v79
04/19/2021, 7:05 PMFunctions which invoke @Composable functions must be marked with the @Composable annotation
- I can't mark main
as composable; I tried moving the body of my application into a separate @Composable function, but I feel like I'm missing some key understanding here.Casey Brooks
04/19/2021, 7:11 PMmain
function is literally just the standard entry-point to a JVM application, and there’s nothing specific about it that makes it Composable. You have to bootstrap the Swing/Compose toolkit yourself with the Window()
function as shown in the “getting started” documentation https://github.com/JetBrains/compose-jb/tree/master/tutorials/Getting_Startedv79
04/19/2021, 7:16 PMChris Sinco [G]
04/20/2021, 4:08 AMChris Sinco [G]
04/20/2021, 4:10 AMWindow
is the root composable in main