Skip to content

Multiple root nodes #55

Answered by Pauan
mathiversen asked this question in Q&A
Oct 28, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

I'm not entirely sure what you mean, dominator has always supported multiple root nodes:

dominator::append_dom(&dominator::body(), Root1::render());

dominator::append_dom(&dominator::body(), Root2::render());

You can append the root wherever you want, it doesn't have to be in the body:

dominator::append_dom(&dominator::get_id("app"), App::render(App::deserialize()));

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@mathiversen
Comment options

@Pauan
Comment options

@mathiversen
Comment options

Answer selected by mathiversen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants