• @zagaberoo
    link
    910 months ago

    I just wish WASM could replace JS rather than merely augment it for non-DOM work.

    • @Knusper@feddit.de
      link
      fedilink
      710 months ago

      You can have frameworks which fully generate the JS DOM code for you, allowing you to write complete single-page applications without writing a single line of JS.

      • @float@feddit.de
        link
        fedilink
        510 months ago

        I’m using the leptos framework (Rust) and really like it so far. Not a single line of JS, not even npm as a dependency in that project.

        • @Knusper@feddit.de
          link
          fedilink
          210 months ago

          Yep, that’s the framework, I’m using, too. But most frameworks in the Rust ecosystem can do DOM interop, as the heavy lifting for that is provided by the wasm-bindgen library.