outwatch icon indicating copy to clipboard operation
outwatch copied to clipboard

Fragment Node

Open mohe2015 opened this issue 2 years ago • 2 comments

Hi,

is there something similar to React fragments (https://beta.reactjs.org/reference/react/Fragment)?

Kind regards Moritz

mohe2015 avatar Jan 27 '23 15:01 mohe2015

Specifically something that you can directly pass to renderInto

mohe2015 avatar Jan 27 '23 18:01 mohe2015

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?

cornerman avatar Jan 27 '23 21:01 cornerman