Is compose web currently only for Kotlin/Wasm, or ...
# compose-web
e
Is compose web currently only for Kotlin/Wasm, or does it also work with just Kotlin/JS?
j
Also Kotlin/JS. But the project creation link doesn’t have support for it by default, so you need to create a wasm project then change wasmJs to Js where neccessary.
e
And in the main app KT file, can I literally keep using the same code? I mean the code that targets the canvas based window in the html, etc.?
o
You'd need add a bit more:
Copy code
fun main() {
    onWasmReady { CanvasBasedWindow(...) }
}
e
Thanks a lot both!