Hey guys, what is the status of Compose HTML, is i...
# compose-web
m
Hey guys, what is the status of Compose HTML, is it still in development/maintenance? or is something that has no focus (by JetBrains)?
i
It is maintained, but no new features are planned in the near future
m
ok, got it, btw, my original thinking was: Should I prefer to use
kotlinx-html
or
Compose HTML
?
i
Compose HTML
is more heavyweight, but provides a different approach (reactive instead of imperative).
kotlinx-html
is just a convenient wrapper over the DOM API. It requires more boilerplate in complex applications.
👍 1
m
Can you give a link for compose html, are talking about material-web
m
if you want to setup it on your project:
Copy code
plugins {
    kotlin("multiplatform")
    kotlin("plugin.compose")
    id("org.jetbrains.compose")
}

...

kotlin {
    js {
        browser {
            commonWebpackConfig {
                cssSupport {
                    enabled.set(true)
                }
            }
        }
        binaries.executable()
    }

    sourceSets {
        jsMain.dependencies {
            implementation(compose.html.core)
            implementation(compose.runtime)
        }
        
        commonTest.dependencies {
            implementation(kotlin("test"))
        }
    }
}