@whisq/ssr
v0.1.0-alpha.10
Published
Server-side rendering for Whisq applications
Maintainers
Readme
@whisq/ssr
Server-side rendering for Whisq applications.
Install
npm install @whisq/ssrUsage
import { renderToString } from "@whisq/ssr";
import { div, h1, p } from "@whisq/core";
const App = div(
h1("Hello from the server"),
p("This page was server-rendered."),
);
const html = await renderToString(App);
// Send `html` in your HTTP responseDocumentation
Full documentation at whisq.dev.
License
MIT
