A pure Haxe virtual dom renderer for coconut.ui based on coconut.diffing.
Differences from coconut.react:
- no JS dependency (moderate size saving)
- allows putting DOM straight into VDOM (use with care)
- slightly better performance (YMMV)
All in all coconut.vdom supports everything coconut.react does, except for the rendering of "pure" react components. You may find coconut.react + preact (+ preact-compat) a good middleground.
-D coconut.vdom.terse_assert: when something other than the renderer removes or moves a node it rendered (browser translation, extensions, direct DOM manipulation), the renderer throws an error saying where in the page that happened. This define drops the code that builds that description and throws a bare'assert'instead. Use it if nothing but coconut touches your DOM and you want the few bytes back.