An open API service indexing awesome lists of open source software.

https://github.com/localvoid/ivi-ssr-poc

Proof of Concept implementation for the new render to string algorithm.
https://github.com/localvoid/ivi-ssr-poc

Last synced: 12 months ago
JSON representation

Proof of Concept implementation for the new render to string algorithm.

Awesome Lists containing this project

README

          

Proof of Concept implementation for the new render to string algorithm.

## API

```ts
function createBlueprint(node: VNode): BlueprintNode;
function render(state: RenderState, node: VNode, blueprint?: BlueprintNode): void;
```

## Example

```ts
const blueprint = createBlueprint($h("div"));

const renderState = {
result: "",
};

render(renderState, $h("div").children("Hello World"), blueprint);
```