Get your own Vue server
App.vue
InfoBox.vue
main.js
 
<template>
  <div>
    <h3>Change Text</h3>
    <p>Click the button to toggle the text in the PRE tag of the root component.</p>
    <button v-on:click="this.$root.text='Hello!'">Change text in root</button>
  </div>
</template>

<style scoped>
div {
  border: solid black 1px;
  padding: 10px;
  width: 250px;
}
</style>                  
http://localhost:5173/