This commit is contained in:
Daniel Ledda
2024-10-31 23:46:23 +01:00
parent 314ccaa677
commit bcb820f35e
36 changed files with 4427 additions and 61 deletions

20
app/home/App.tsx Normal file
View File

@@ -0,0 +1,20 @@
import { computed, defineComponent, ref } from "vue";
export default defineComponent({
name: "app-root",
setup() {
const count = ref(0);
const countDouble = computed(() => count.value * 2);
count.value++;
return () => (
<div class="app-main">
<button class="test" onClick={() => count.value++}>Click me!</button>
<div>Count: {count.value}</div>
<div>Count Double: {countDouble.value}</div>
<p>
<a href="/generative-energy/">Go to this other site hosted here but a different Vue app!</a>
</p>
</div>
);
},
});