Skip to content
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

Fragment Node #683

Open
mohe2015 opened this issue Jan 27, 2023 · 2 comments
Open

Fragment Node #683

mohe2015 opened this issue Jan 27, 2023 · 2 comments

Comments

@mohe2015
Copy link

Hi,

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

Kind regards
Moritz

@mohe2015
Copy link
Author

Specifically something that you can directly pass to renderInto

@cornerman
Copy link
Member

cornerman commented Jan 27, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants