JSX compiler
Invoke the optional TSX compiler at build time.
01 / Usage previewSource-backed
Build-time code shown beside its usage notes.
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' });}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.