Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Okay I think I might be going blind. I apologies for the previous rushed responses. I had thought you were trying to modify elements such as For your scenario of <body>
<header>MyHeader</header>
<main>The main content</main>
<footer>MyFooter</footer>
</body> If you want to structure it as "multiple components on the same level", your second example is correct. @component
def App():
return html._(header(), main(), footer()) You can not directly return an iterable as a top-level root node within your component (such as your |
Beta Was this translation helpful? Give feedback.
-
I've just started working on making a simple prototype site. Is there any capability to return multiple components on the same level? The reason for doing so is to try and follow semantic html guidelines where the body tag might have a header, main, and footer tag without having to first place it into a div.
This is how I would think to do it, but the output is not as expected:
There is a way to get this to render, but it requires placing everything in a div:
Any help or guidance would be great. Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions