Skip to content

Guide

The Guide explains how Regor behaves in real runtime usage, with patterns that map directly to production code.

  1. Reactivity
    Core primitives (ref, sref, computed, observers), update semantics, and state design.

  2. Templates and Expressions
    Interpolation transform, parser/evaluator capabilities, and template authoring patterns.

  3. Components
    Component creation, input channels (:x, r-bind:x, :context, r-context), slots, and inherit behavior.

  4. TypeScript
    Strong typing patterns for app contexts, class-based contexts, and ComponentHead<T>.

  5. Lifecycle and Cleanup
    Mounted/unmounted hooks, unmount vs unbind, and drainUnbind usage.

  6. Mounting
    Static-first + dynamic islands and existing-markup binding patterns.

  7. Persisted State
    persist(...) patterns for durable reactive state.

  8. Performance
    Benchmark methodology, bottleneck analysis, and optimization workflow.

  9. Troubleshooting
    Symptom -> cause -> fix guide for common runtime issues.