template
v-if
や
v-for
の中に入るタグが複数ある場合に使用する。
v-for
の場合、繰り返す各要素に
key
要素の指定が必要
<template v-if="ok"> <h1>Title</h1> <p>Paragraph 1</p> <p>Paragraph 2</p> </template>
参照
Vue.jsの <template>タグには複数の役割がある
Qiita
https://qiita.com/m_norii/items/c52171fd09c4504f8b81
2021/01/12