Skip to content

toString #12

@fabiancook

Description

@fabiancook

🚀 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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions