Skip to content

server rendering

jiyinyiyong edited this page Sep 1, 2021 · 1 revision

Server rendering

Virtual DOM can be rendered on a server, use it like in JavaScript.

Find out in the section: SSR.

make-string is the function to render HTML. realize-ssr! is also useful to make first screen look smoother, make sure it's called before render!.

Notice that when rendering on server, events are not bound, internally we use mute-element to remove events before rendering. Without realize-ssr!, render! function will remove existing DOM and mount the whole tree.

Clone this wiki locally