Skip to content

Instantly share code, notes, and snippets.

@wescpy
Created May 9, 2024 03:35
Show Gist options
  • Save wescpy/fa9f5ea07aaef1a73660ae4c5ba9ca1a to your computer and use it in GitHub Desktop.
Save wescpy/fa9f5ea07aaef1a73660ae4c5ba9ca1a to your computer and use it in GitHub Desktop.
Vue.js "Hello World" sample generated by Gemini
<!DOCTYPE html>
<html>
<head>
<title>Hello Vue!</title>
<script src="https://unpkg.com/vue@3"></script>
</head>
<body>
<div id="app">
{{ message }}
</div>
<script>
const { createApp } = Vue;
createApp({
data() {
return {
message: "Hello from Vue.js!"
};
}
}).mount('#app');
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment