This is actually wrong in this context. Rust is running natively here (so no WebAssembly), directly manipulating the DOM of the web view without having to go through JavaScript glue code.
Here's the code: https://github.com/DioxusLabs/dioxus/tree/master/packages/in...