Event Handling
Hirola uses an on:<event>
binding style
Hirola uses mounts events to web_sys::Element under the hood, so you should be able to use any valid eventhandler.→ Read more about Events on MDN
Example
html! {
<button
on:click=|e| {
let window = web_sys::window().unwrap();
window.alert_with_message("Hello from Hirola!");
}>
"Click Me"
</button>
}