Skip to content

huang-xiao-jian/preact-naive-server-renderer

Repository files navigation

preact-naive-server-renderer

Build Status Coveralls github David Package PeerDependency Snyk Vulnerabilities for GitHub Repo

A native renderer implementation for server side preact.

Usage

import { render, stringify } from 'preact-naive-server-renderer';

// render preact vnode into host element tree
function render(vnode: ComponentChild, parent: HostElement): HostElement;

// stringify host element tree into string literal
function stringify(children: ElementChild[], singleTags: SingleTag[]): string;

Licence

MIT

About

A native renderer implementation for server side

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published