edge-case, inferno needs care to render BODY vnode to the document #1679
iambumblehead
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Did you try rendering inferno fragment? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sharing this edge-case with you in-case you may have any related input. TLDR it would be great if inferno provided a nice way to render a list of vnodes to the BODY element
For reasons, such as to increase the google page-speed score, someone might want to render a minimal tree of elements. For example, the document here https://picocss.com/ uses css rules that target a streamlined document like this,
Rendering the above with inferno is tricky. If a BODY vnode tree is rendered to the root element, that doesn't work
A work-around I have found for achieving the above layout is to use document fragment
If inferno could handle this condition, so that the same result could be achieved using the normal documented way of rendering a vnode, that would be great. Maybe there exists already a nice way of doing this? Any suggestions are welcome, thanks
Beta Was this translation helpful? Give feedback.
All reactions