Hi everyone, I've been playing around with Kotlin ...
# compose-web
h
Hi everyone, I've been playing around with Kotlin -Web recently and have a question. What is the difference between the wasmJs and js targets? If I build the UI with HTML (not using Compose ui), will the business logic have the exact same internal behavior for both targets? Or does wasmJs compile the business logic to WebAssembly, while the js target compiles it to JavaScript?
So what I’m curious about is: When using HTML UI, I’m wondering which performs better: jsMain or wasmJs. I’ve heard that wasm is supposed to be better.
Using HTML UI in wasmJs seems really complicated — i have to create elements manually with createElement.
r
Wasm target in general performs a lot better. You can use #C06UAH52PA7 framework to use HTML UI with wasmJs target (disclaimer: I'm the author).
👀 2
👍 1
t
Theres also #C04RTD72RQ8 for HTML UI
👍 1