38eae79a2f
req: client_local/005\nreq: client_local/006\nreq: client_local/007\nreq: client_local/008\nreq: client_local/009\nreq: client_local/010\nreq: client_local/014
14 lines
310 B
Rust
14 lines
310 B
Rust
#[hemx::surface]
|
|
pub mod ui {}
|
|
|
|
#[hemx::handler(client)]
|
|
pub fn increment(
|
|
event: hemx::wasm::ClientEvent,
|
|
state: hemx::wasm::ClientState,
|
|
) -> impl hemx::IntoEffect {
|
|
ui::client_local::counter_panel.text(format!(
|
|
"updated by Rust/WASM ({}, {})",
|
|
event.kind, state.encoded
|
|
))
|
|
}
|