However, updating the DOM and then turning the DOM to an image (i.e., rendering it) still has an indirection that using canvas/webgl/etc. don't have.
Both Mithril and Preact use virtual DOMs:
I had the impression that the lack of double buffering would imply a more direct access, this the "immediate" in the name.
[1]: https://github.com/ocornut/imgui/wiki/About-the-IMGUI-paradi...