Skip to content

What is Fragment and what can it do? #11642

Discussion options

You must be logged in to vote

When we write <template v-for>, does the compiler create a Fragment?

Yes it does.

Why do Fragments only work in render functions and JSX, but not in templates?

They work in JSX/render functions by accident, I'd say.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tbontb-iaq
Comment options

@LinusBorg
Comment options

Answer selected by tbontb-iaq
@tbontb-iaq
Comment options

@LinusBorg
Comment options

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