Is compose web currently only for Kotlin/Wasm, or does it also work with just Kotlin/JS?
j
Justin Salér
03/13/2024, 9:25 AM
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
Erik
03/13/2024, 9:34 AM
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
Oleksandr Karpovich [JB]
03/13/2024, 9:36 AM
You'd need add a bit more:
Copy code
fun main() {
onWasmReady { CanvasBasedWindow(...) }
}