Components

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

Topics

Quick example

A minimal component with resumable state:

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