Tengo el siguiente código en Kotlin
import kotlinx.interop.wasm.dom.* import kotlinx.wasm.jsinterop.* fun main(args: Array<String>) { val veryImportantCalculation = 42 //access the #wasm in html and append it to the element }que se compila en wasmFunctions.wasm,
y un HTML extremadamente fácil:
<html> <head> <meta charset='UTF-8'> <script wasm="./wasmFunctions.wasm" src="./wasmFunctions.wasm.js"></script> </head> <body> <label id='wasm'></label> </body> </html>Necesito poner el valor veryImportantCalculation del código Kotlin-to-wasm en la etiqueta #wasm. ¿Hay alguna manera de hacerlo con la biblioteca dom importada?