Can A Vue Template Have Multiple Root Nodes (Fragments)? If you try to create a Vue template without a root node, such as this: <template> <div>Node 1</div> <div>Node 2</div> </template> You'll get a compilation and/or runtime error, as templates must have a single root element. Typically, you'll fix this problem by adding a "wrapper" div as a parent. This wrapper element has no display purpose, i
![Can A Vue Template Have Multiple Root Nodes (Fragments)?](https://cdn-ak-scissors.b.st-hatena.com/image/square/561a4cf5b1205bf26264cb1f354de3add87346bc/height=288;version=1;width=512/https%3A%2F%2Fvuejsdevelopers.com%2Fimages%2Fposts%2Ffragments.jpg)