You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routes/reference/rendering/render.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,9 @@ Dispose function for the mounted root.
55
55
56
56
## Behavior
57
57
58
-
-`render` creates a new root and appends its output to `element`.
58
+
-`render`is a browser/client API and is unsupported in the server bundle. It creates a new root and appends its output to `element`. When `element` is `document`, it evaluates `code()` directly instead of using DOM insertion.
59
59
- The first argument must be a function so Solid can establish the root before evaluating JSX.
60
-
- The returned function disposes the root and removes the rendered content.
60
+
- The returned function disposes the root and clears the mount container's content, so mounting into an empty container is safest.
0 commit comments