<div id="app">
</div>
.red {
  padding: 1rem;
  border: 3px solid red
}
const { createApp, ref, onMounted } = Vue;

const app = Vue.createApp({
  setup() {
    const text = Vue.ref('Hello Ray.');
    
    Vue.onMounted(() => {
      console.log(text.value)
    })
  }
});

app.mount('#app');

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdn.tailwindcss.com
  2. https://unpkg.com/vue@3