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.
- Host: GitHub
- URL: https://github.com/localvoid/ivi-ssr-poc
- Owner: localvoid
- License: mit
- Created: 2017-06-19T09:06:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-19T11:36:52.000Z (almost 9 years ago)
- Last Synced: 2025-04-11T21:13:49.286Z (12 months ago)
- Language: TypeScript
- Size: 9.77 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```