-
-
Notifications
You must be signed in to change notification settings - Fork 13
Allow passing multiple child nodes as arguments #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
Conversation
I only ran |
Hmm, so I guess we already supported |
Indeed, it's when I noticed nested arrays already worked that I figured supporting this multiple argument syntax wouldn't be too complicated. |
OK! I’m up for this, but could you update the docs? |
Sure, will do 👌 |
I pushed some documentation changes. Do let me know if you think there's something missing. |
Sorry I took a while, landed! |
Other implementations—most notably
hyperscript
itself—allow passing multiple child nodes as arguments to the factory function, instead of just as a single array argument. This PR adds support for that usage tohastscript
. Based on the existing tests, this shouldn't break any current behaviour, because they all passed without modification.