← All examplesBuild tools / build

JSX compiler

Invoke the optional TSX compiler at build time.

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›compiler.tsx
compiler.tsx
●  Zidom
// Build-time only. The compiler is not shipped in the docs browser bundle.import { compileJsx } from '@zidomjs/compiler';export function compileExample() {  const source = `import { signal } from '@zidomjs/core';const clicks = signal(0);export const View = () => <button onClick={() => clicks.value++}>{clicks.value}</button>;`;  return compileJsx(source, 'Counter.tsx', { reactiveReads: 'tracked' });}
● zidom / compilerTSX · 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.