143

Release Server Side Rendering · mbasso/asm-dom · GitHub

 6 years ago
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

@mbassombasso

released this

Dec 11, 2017
· 123 commits to master since this release

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

Breaking changes

Assets 2
All reactions

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK