🚀 Feature Proposal
Produce a string from any vnode
Motivation
To output a vnode as a string for client usage.
Example
const node = (
<container>
<text>Left</text>
<text>Right</text>
</container>
);
Consuming the result iteratively as it is generated:
for await (const iteration of toString(node)) {
console.log({ iteration });
}
Resolving the complete string:
const value = await toString(node);
🚀 Feature Proposal
Produce a string from any vnode
Motivation
To output a vnode as a string for client usage.
Example
Consuming the result iteratively as it is generated:
Resolving the complete string: