← All examplesExperimental / build

Server rendering

Escaped server HTML from the dedicated server JSX runtime.

01 / Usage previewSource-backed
Build-time feature. Run the documented example in Node during an installable build. No compiler or server JSX runtime is sent to the browser.
Build-time code shown beside its usage notes.
Zidom JS / Example sourceREAD ONLY
src›demos›ssr.tsx
ssr.tsx
●  Zidom
// Server-only example (intentionally not imported in a browser bundle).// This source is executed in Node by scripts/check-published.mjs.import { signal } from '@zidomjs/core';import { renderToString } from '@zidomjs/server';import { jsx } from '@zidomjs/server/jsx-runtime';export function renderExample() {  const message = signal('Hello <Zidom> & friends');  return renderToString(() => jsx('p', { children: message }));}
● zidom / ssrTSX · UTF-8 · Copyable source

This website demo runs pinned Zidom beta.1 packages; the latest framework release is beta.2. See release details and limitations. Report a problem with this example.