Debian Codegraph @

.cargo/vendor/wasm-bindgen/guide/src/examples/todomvc.md

raw
1 # TODO MVC using wasm-bingen and web-sys
2
3 [View full source code][code] or [view the compiled example online][online]
4
5 [online]: https://rustwasm.github.io/wasm-bindgen/exbuild/todomvc/
6 [code]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/todomvc
7 [element]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/todomvc/src/element.rs
8 [scheduler]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/todomvc/src/scheduler.rs
9
10 [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) and [web-sys](https://rustwasm.github.io/wasm-bindgen/api/web_sys/) coded [TODO MVC](http://todomvc.com/)
11
12 The code was rewritten from the [ES6 version](http://todomvc.com/examples/vanilla-es6/).
13
14 The core differences are:
15 - Having an [Element wrapper][element] that takes care of dyn and into refs in web-sys,
16 - A [Scheduler][scheduler] that allows Controller and View to communicate to each other by emulating something similar to the JS event loop.
17
18
19 ## Size
20
21 The size of the project hasn't undergone much work to make it optimised yet.
22
23 - ~96kb release build
24 - ~76kb optimised with binaryen
25 - ~28kb brotli compressed