first commit

This commit is contained in:
Daniel Ledda
2024-10-30 20:42:01 +01:00
commit e6f20af28d
13 changed files with 556 additions and 0 deletions

19
app/App.tsx Normal file
View File

@@ -0,0 +1,19 @@
import { defineComponent, computed, ref } from "vue";
import Test from '@/test.tsx';
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>
<Test />
</div>
);
},
});