TODO MVC using wasm-bingen and web-sys

[View full source code][code] or view the compiled example online

wasm-bindgen and web-sys coded TODO MVC

The code was rewritten from the ES6 version.

The core differences are:

  • Having an Element wrapper that takes care of dyn and into refs in web-sys,
  • A Scheduler that allows Controller and View to communicate to each other by emulating something similar to the JS event loop.

Size

The size of the project hasn't undergone much work to make it optimised yet.

  • ~96kb release build
  • ~76kb optimised with binaryen
  • ~28kb brotli compressed