<div id="app">
  <h1 :style="styleObject">Hello Vue</h1>
</div>
const { createApp } = Vue;

createApp({
  data() {
    return {
      styleObject: {
        backgroundColor: 'black',
        color: 'white'
      }
    }
  },
}).mount('#app')

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://unpkg.com/vue@3