Nomadic elements #328
wmertens
started this conversation in
Proposals For Qwik
Replies: 0 comments
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.
-
What is it about?
Rendering children anywhere, also with SSR
What's the motivation for this proposal?
Problems you are trying to solve:
Goals you are trying to achieve:
Proposed Solution / Feature
What do you propose?
in v2, vnodes can easily be moved around, they only need to some metadata in the vnode map.
we need an api that allows creating decoupled vnodes, and also allows ssr-rendering them.
Perhaps
const element = createNomad(id, jsxNode)and then it is up to the user to put the element somewhere.On the client this would return a DOM element, and on the server it would return something you can call toString on to get the html.
That way, you could create a reactifier like so:
Links / References
No response
Beta Was this translation helpful? Give feedback.
All reactions