Get your own Vue server Result Size: 625 x 565
App.vue
main.js
 
<template>
  <h1>&lt;template&gt; Example</h1>
  <p>Use the button to toggle a section of HTML code.</p>
  <button v-on:click="display = !display">Toggle</button>
  <h4>Beautiful Places</h4>
  <ul>
    <li>Trolltunga</li>
    <template v-if="display">
      <li>Potato Point</li>
      <li>The souks of Marrakech</li>
      <li>Dry Tortugas</li>
      <li>Halong Bay</li>
    </template>
    <li>...</li>
  </ul>
<p>This list could go on forever:)</p>

</template>

<script>
export default {
  data() {
    return {
      display: false
    };
  }
}
</script>                  
http://localhost:5173/