Clone in a terminal:
main_component.rs
use kaja_web::prelude::*; #[component("main-component")] pub struct Main; impl Component for Main { fn connected(&mut self, element: HtmlElement) { self.render(&element); } fn render(&self, element: &HtmlElement) { let content = html! {{ <counter-component count="1"></counter-component> <counter-component count="42"></counter-component> }}; element.set_inner_html(content.as_str()); } }

File history (8 commits)

ae58226 Johan Mattsson - johan.mattsson.m@gmail.com
Update example
Update example
06a68b2 Johan Mattsson - johan.mattsson.m@gmail.com
Try multi thread component ideas
Try multi thread component ideas
dfe7085 Johan Mattsson - johan.mattsson.m@gmail.com
New compoent self (Arc<Mutex<Data>>)
New compoent self (Arc<Mutex<Data>>)
8d68365 Johan Mattsson - johan.mattsson.m@gmail.com
Fix warning messages
Fix warning messages
d9014e7 Johan Mattsson - johan.mattsson.m@gmail.com
Get and set macro for component
Get and set macro for component
0cd2174 Johan Mattsson - johan.mattsson.m@gmail.com
Update function for components referenced by id
Update function for components referenced by id
6305aa4 Johan Mattsson - johan.mattsson.m@gmail.com
No self closing component
No self closing component

It looks like self closing tags cause problems in html.
4cbf767 Johan Mattsson - johan.mattsson.m@gmail.com
Example
Example

Contact

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