Server Side Rendering
With this release you can now implement SSR (Server Side Rendering) with asm-dom. It adds 2 new functions:
- toHTML that renders a vnode to HTML string. This is particularly useful if you want to generate HTML on the server.
- toVNode to convert a DOM node into a virtual node. This is especially good for patching over an pre-existing, server-side generated content.
Bugfixes
- Fix a diff problem with
checked
prop in JS API - Fix boolean attributes truthy value:
true
is now set as empty string and not "true" (https://www.w3.org/TR/html5/infrastructure.html#sec-boolean-attributes)
Breaking changes
None