diff --git a/examples/hello_world.rs b/examples/hello_world.rs index 512e8e7..f3616dd 100644 --- a/examples/hello_world.rs +++ b/examples/hello_world.rs @@ -15,8 +15,10 @@ fn App(cx: &Arc) -> View { #[component] fn Card(cx: &Arc, content: String) -> View { + let bar = "-".repeat(content.len()); + rsx! { - "----\n{content}\n----" + "{bar}\n{content}\n{bar}" } .view(&cx) }