143
Release Server Side Rendering · mbasso/asm-dom · GitHub
source link: https://github.com/mbasso/asm-dom/releases/tag/0.4.0
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Server Side Rendering
Compare
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
Assets
2
All reactions
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK