Components

Author UI with the view! macro, signals, and slots — components only execute on the server.

LIVE

Signals + handlers

Count: 0

Topics

Quick example

A minimal component with resumable state:

#[component]
fn Counter() {
    let count = signal(0);
    view! {
        <button onClick={count.update(|c| *c += 1)}>
            {count}
        </button>
    }
}