Hey guys! How do you organize your projects to pla...
# javascript
l
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
Copy code
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 Thread in #compose-web
Maybe this is well suited here too