Ramonda

Examples

Each one is a real component in apps/docs/src/demos/, rendered live and printed from the same file. Open the source under any of them.

State and a handler

@compute β€” derived values, cached

  • apples β€” 3
  • bread β€” 2
  • coffee β€” 9

total: 14total computed 1Γ— Β· visible computed 1Γ— β€” typing in the filter recomputes only one of them

@create, @mount, @destroy β€” in order

    @Host β€” the element a component is

    I am a <section>
    I have the default host.

    Inspect the elements: the first is a real <section>, the second is <ramonda-host>.

    Refs β€” reaching the element

    0 characters

    @onWindow β€” a global listener

    window is 0px wideresize the browser

    @onDocument β€” a keyboard shortcut

    last key: β€”pressed 0 times β€” type anywhere on the page

    @timeout β€” cancelled on unmount

    waiting 1.5 seconds…

    @interval β€” and the two-pass pattern

    β€”updates every second

    @effect β€” the cleanup contract

      @watchProp β€” reacting to a prop

      showing adano change yet β€” @watchProp does not fire on mount

      Context β€” a value without threading

      a component two levels down:light / pink

      @memoizedHandler β€” stable handler identity

      • apples
      • bread
      • coffee

      β€”

      createSubscriptionDecorator β€” external stores

      0

      store listeners: 0 β€” unmounting the component removes its subscription, with nothing in the component to remember it

      ErrorBoundary β€” containing a failure

      this row is outside the boundary

      Fragile is fine.

      @persist β€” a value from the server

      prerendered at 2026-07-24 09:32:54 UTCclient @create ran 0 time(s) β€” the value above came from the server

      list() β€” lists without keys

      click a few counters, then reverse β€” each count moves with its task

      • write the docs
      • fix the diff
      • ship it

      list() β€” a filtered, conditional list

      star a row, then filter β€” a row that stays keeps its own star, and no row inherits one from a person the filter removed

      • Ada compilers
      • Grace runtimes
      • Edsger semantics
      • Barbara genomics
      • Katherine trajectories

      focusOn β€” what an immutable edit copies

      last: nothing yet

        Only what is ON the path gets a new object. `state.users` and `state.posts[0]` come out of every edit as the very same objects, so a shallow compare rejects those branches without looking inside them β€” which is what makes the diff cheap. Write a value that is already there and nothing is copied at all, not even the root.

        RouteHook β€” the live route of this site

        pathname/examples

        searchParams(none)

        → State→ Lists→ back here, with a query

        Reads are per key: a component reading only pathname is not re-rendered when the query changes.

        Inheritance β€” the unit of reuse

        three classes, one render() between them β€” the third is a <mark>

        AsyncLoad β€” a component in its own chunk

        open the network tab β€” the chunk is preloaded from <head> and fetched once

        Loaded at 9:32:54 AM.fetched on demand