Guide

Learn Regor from live examples, then explore the patterns behind reactive interfaces.

Build your understanding from state to screen. Start with reactivity, templates, and components, then explore the topics your application needs.

Learn by changing something

Four guides include live previews with their actual source: a computed quote, a service board, a profile component, and a ticker with lifecycle cleanup.

Guide Map

01 / Core concepts

Reactivity

Model state with refs, derive values with computed, and coordinate updates.

Explore reactivity
02 / Core concepts

Templates and Expressions

Connect HTML to state with expressions, keyed lists, events, and form bindings.

Explore templates and expressions
03 / Core concepts

Components

Compose typed components with reactive props, named slots, and explicit context boundaries.

Explore components
04 / In practice

TypeScript

Type app contexts, component inputs, and runtime contracts without losing reactive behavior.

Explore typescript
05 / In practice

Lifecycle and Cleanup

Own timers, listeners, and subscriptions through scoped mount and unmount hooks.

Explore lifecycle and cleanup
06 / In practice

Mounting

Enhance existing markup or mount independent reactive islands on a static page.

Explore mounting
07 / In practice

Persisted State

Keep selected reactive preferences across reloads with persist and stable storage keys.

Explore persisted state
08 / In practice

Performance

Measure DOM workloads, investigate bottlenecks, and verify improvements against a baseline.

Explore performance
09 / In practice

Troubleshooting

Trace mounting, bindings, component inputs, and cleanup problems from symptom to cause.

Explore troubleshooting
New to Regor? A short path from your first mount to reusable components.
  1. Follow Getting started to mount your first app.
  2. Try the reactivity and template previews.
  3. Compose your views with components, then learn how to clean up their resources.