outwatch
outwatch copied to clipboard
Fragment Node
Hi,
is there something similar to React fragments (https://beta.reactjs.org/reference/react/Fragment)?
Kind regards Moritz
Specifically something that you can directly pass to renderInto
Thanks for bringing this up!
You can group modifiers together with VModifier(modifier1, modifier2), which will return a modifier but not a node.
For passing a group of modifiers to the render methods, your only option right now would be to use Outwatch.renderReplace.
We could look into supporting fragments which are now part of snabbdom. I have not looked into it yet.
Does that help?