[Vuejs]-How do I make a Vuejs value display in my html?

0👍

syntax mistake in firstName, try this:

const app = Vue.createApp({
    template: '<h1>Hello {{firstName}} </h1>',
     data() {
        return {
            firstName: 'John',
        }
    },
})

app.mount('#app')

Leave a comment