Skip to content

What's the point of fragment? #722

Answered by delucis
inwardmovement asked this question in Q&A
Discussion options

You must be logged in to vote

One useful thing is that you can set:html on a fragment:

<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?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@inwardmovement
Comment options

@delucis
Comment options

Answer selected by inwardmovement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants