Clone in a terminal:
Commit 6305aa4
Johan Mattsson - 2026-06-29T20:49:52+00:00
6305aa44806be50d95ac8da6e6d088694007b0e7johan.mattsson.m@gmail.com

No self closing component It looks like self closing tags cause problems in html.

Changed files (1)

Diff

diff --git a/examples/counter-component/src/main_component.rs b/examples/counter-component/src/main_component.rsindex 9d86310..0218ae7 100644--- a/examples/counter-component/src/main_component.rs+++ b/examples/counter-component/src/main_component.rs@@ -14,8 +14,8 @@ impl Component for Main { impl Main {     fn render(&self, element: HtmlElement) {         let content = html! {{-            <div><counter-component count="1" /></div>-            <div><counter-component count="42" /></div>+            <counter-component count="1"></counter-component>+            <counter-component count="42"></counter-component>         }};          element.set_inner_html(content.as_str());

Contact

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