@@ -3,6 +3,9 @@
33//! ## Example
44//!
55//! ```no_run
6+//! use dodrio::{on, bumpalo::Bump, Attribute, Node, Render};
7+//! use wasm_bindgen::UnwrapThrowExt;
8+//!
69//! /// A component that greets someone.
710//! pub struct Hello<'who> {
811//! who: &'who str,
@@ -29,10 +32,10 @@
2932//! [on(bump, "click", |root, _vdom, _event| {
3033//! let hello = root.unwrap_mut::<Hello>();
3134//! let window = web_sys::window().expect_throw("should have a `Window` on the Web");
32−//! window.alert(hello.who);
35+//! window.alert_with_message(hello.who);
3336//! })],
3437//! // Attributes.
35−//! [Attribute { name: "id", value: &id }],
38+//! [Attribute { name: "id", value: id.into_bump_str() }],
3639//! // Child nodes.
3740//! [
3841//! Node::text("Hello, "),