-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support components that return an Array of Elements (Fragments) #173
Comments
This may be accomplished when we update our dependencies from their original root (see Tram-One/nanohtml#19, Tram-One/hyperx#7, and Tram-One/nanomorph#4) |
Some of this work has been done here: b40f101 This work does not rely on updates to the underlying libraries (which upon more inspection, appear to just expose interfaces for defining how to handle fragments, and don't actually offer any solutions). |
We implemented fragments in #197, if there is a strong case we could look into supporting returning a list of elements, and wrapping that in an implicit fragment, but that would likely over-complicate the type interface. |
Summary
React supports this using Fragments, we should look at doing something similar. Maybe DocumentFragments 🤷♂️ ? This may be unnaturally hard given that we attach so much data to the element being generated 🤔
The text was updated successfully, but these errors were encountered: