The "TransitionGroup" page of the guide includes the following text:
Differences from <Transition>
<TransitionGroup> supports the same props, CSS transition classes, and JavaScript hook listeners as <Transition>, with the following differences:
- By default, it doesn't render a wrapper element. But you can specify an element to be rendered with the
tag prop.
- [...]
This implies that <Transition> does render a wrapper element. But actually, in Vue 3, it appears that neither <Transition> nor <TransitionGroup> renders a wrapper element by default, so this isn't really a "difference".
(This language seems to have been introduced by #649.)
I'm new to Vue, so maybe there's something I'm not understanding here, but it seems like this should maybe be revised to say something like:
- A
tag prop can be passed to render a wrapper element. (By default, <TransitionGroup> doesn't render a wrapper element, similar to <Transition>.)
The "TransitionGroup" page of the guide includes the following text:
This implies that
<Transition>does render a wrapper element. But actually, in Vue 3, it appears that neither<Transition>nor<TransitionGroup>renders a wrapper element by default, so this isn't really a "difference".(This language seems to have been introduced by #649.)
I'm new to Vue, so maybe there's something I'm not understanding here, but it seems like this should maybe be revised to say something like: