Clone in a terminal:
Commit d2a093f
Johan Mattsson - 2026-07-24T20:25:12+00:00
d2a093f3d7e8ed8449df9af3f62b9c75e5481ff5johan.mattsson.m@gmail.com

Update readme

Changed files (3)

Diff

diff --git a/Cargo.lock b/Cargo.lockindex 989cf76..8222a59 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -382,7 +382,7 @@ dependencies = [  [[package]] name = "kaja-callback-macro"-version = "1.0.1"+version = "1.0.2" dependencies = [  "gloo",  "gloo-console",diff --git a/Cargo.toml b/Cargo.tomlindex 68295fe..e6086c0 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -1,6 +1,6 @@ [package] name = "kaja-callback-macro"-version = "1.0.1"+version = "1.0.2" edition = "2024" description = "Callback macro for kaja-web" license = "MIT"diff --git a/README.md b/README.mdindex bcd7468..ff311c0 100644--- a/README.md+++ b/README.md@@ -18,12 +18,16 @@ fn some_on_click_function(event: SomeClickEvent) {     log!("event.index: {:?}", event.index); } -// This example allows you to call the Rust function from JavaScript like this:-let html = html! {{-    <button onclick="someClickCallback({-        index: 1-    })">Run WASM Callback</button>-}};+pub fn example() -> String {+    // This example allows you to call the Rust function from JavaScript like this:+    let html = html! {{+        <button onclick="someClickCallback({+            index: 1+        })">Run WASM Callback</button>+    }};++    html+}  #[wasm_bindgen(start)] pub fn init() {

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112