Event Handlers seem like a hassle in Rust, and I'm wondering how big, and what precisely the advantages would, or could be. What are the extra steps JS either has or doesn't have to make compared to Rust, using WASM?
An example I can find reading input in JS and executing the code in Rust: Click event read in JS. As far as I'm understanding here. JS directly uses the converted Rust function in WASM.
An example reading mouse input in Rust: Mouse move in Rust. In this example, Rust calls the JS eventhandler, which than all gets converted to WASM and executed?
AND -> Does the same apply for reading keyboard inputs?
Can someone ELI5? What happens step by step, and as I asked, what would be the advantages?