What's the point of fragment? #722
inwardmovement
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
One useful thing is that you can <Fragment set:html={htmlString} /> You can also do that on an HTML element, but fragment lets you inject just the HTML with no wrapper element. Anyone else have any favourite uses? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I don't understand fragments as the output is the same with or without wrapping in
<>...</>
. Can you tell me?This:
Or this:
Both outputs to:
Beta Was this translation helpful? Give feedback.
All reactions