How to use vue js inside django template? Is it problem with Vue js only?

Viewed 19

In my index.html i have following code:

<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>

<div id="app">{{ message }}</div>

<script>
  const { createApp } = Vue
  createApp({
    data() {
      return {
        message: 'Hello Vue!'
      } 
    }
  }).mount('#app')
</script>

when i open in browser there is error in console [Vue warn]: Component is missing template or render function. at

0 Answers
Related