Skip to content

About

Coconut rendering through virtual-dom.

Resources

Stars

24 stars

Watchers

6 watching

Forks

Repository files navigation

Coconut VDOM Renderer

Gitter

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.

Defines

  • -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.

About

Coconut rendering through virtual-dom.

Resources

Stars

24 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages