Thread
#compose-web
    LeoColman

    LeoColman

    9 months ago
    Hey guys! How do you organize your projects to play around with the UI? I tried to create the structure: -- jsMain -- components -- MyComponent.kt <-- Contains a @Composable function that I want to render -- jsTest -- components -- MyComponentPlayground.kt <-- Launches only MyComponent, so I can develop it instead of rendering all the screen But I don't really know how to run this custom component. I tried creating a
    suspend fun main() {
            renderComposable("root") {
            Style(AppStyleSheet)
            component()
        }
    }
    but I don't know how I'd execute this main. I was going to write a simple main for every component, but that doesn't seem very feasible
    Maybe there's a way to configure which main will run on
    gradlew jsBrowserRun
    ?
    Big Chungus

    Big Chungus

    9 months ago
    I just have sandbox module
    LeoColman

    LeoColman

    9 months ago
    Interesting, I think it's the same thing I was looking for
    I'll copy yours :kotlin-intensifies:
    Thanks @Big Chungus