Search KetJS

Search titles, descriptions, and section headings.

    Diagram

    100%
    Drag to pan · Scroll or pinch to zoom · + / − to zoom · Arrow keys to pan · 0 to fit · 1 to reset

    ketjs-view playground

    Edit TSX. Run it with the real ketjs-view runtime. No account required.

    Read the lesson →

    Editor · app.tsx

    // File: src/islands/counter.tsx
    import { signal } from '@ketvietlab/ketjs-view'
    
    export default function Counter() {
      const count = signal(0)
      return () => <section>
        <h1>A reactive counter</h1>
        <p aria-live="polite">Count: {count()}</p>
        <button type="button" onClick={() => count.set(n => n + 1)}>Add one</button>
      </section>
    }
    

    Live preview

    Compiler & runtime

    Loading the compiler…