Create an HTML file using Vue.js via CDN

<!DOCTYPE html>
<html lang="en">


<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <title>Title</title>
    <style>
    </style>
</head>


<body>
    <div id="app">
    </div>
</body>
<script>
    const { createApp } = Vue;
    const app = createApp({
        data() {
            return {
            };
        },
        watch: {
        },
        mounted() {
        },
        methods: {
        }
    });
    app.mount('#app');
</script>

Leave a comment

Your email address will not be published. Required fields are marked *