<!DOCTYPE html>
<html lang="en">
<head>
<title>App</title>
<script src="https://unpkg.com/vue@next"></script>
</head>
<body>
<div id="app">
<blog-post title="hello world"></blog-post>
</div>
<script>
const app = Vue.createApp({});
app.component("blog-post", {
props: {
title: String
},
template: `<h1>{{title}}</h1>`
});
app.mount("#app");
</script>
</body>
</html>
Created
February 16, 2021 15:19
-
-
Save akrisiun/81f0afacc403fdd2cd379e8fa14e0959 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment