-
Notifications
You must be signed in to change notification settings - Fork 0
server rendering
jiyinyiyong edited this page Sep 1, 2021
·
1 revision
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.