MoonBit is a modern language plus workflow designed to create efficient WebAssembly projects; it can also target JavaScript. I last looked at MoonBit in June 2024, so I wanted to see if it had progressed in regards to using Wasm. (Aside: if you still don’t quite get the point of Wasm, you are not entirely alone.)
Now, MoonBit can also run within the Web Component model, which we’ll look at shortly. We’ll implement this and then check that it works. We’re only going to implement a simple addition method.








