djledda.de main
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 2 месеца
преди 2 месеца
преди 2 месеца
преди 2 месеца
1234567891011121314151617181920
  1. import { computed, defineComponent, ref } from "vue";
  2. export default defineComponent({
  3. name: "app-root",
  4. setup() {
  5. const count = ref(0);
  6. const countDouble = computed(() => count.value * 2);
  7. count.value++;
  8. return () => (
  9. <div class="app-main">
  10. <button class="test" onClick={() => count.value++}>Click me!</button>
  11. <div>Count: {count.value}</div>
  12. <div>Count Double: {countDouble.value}</div>
  13. <p>
  14. <a href="/generative-energy/">Go to this other site hosted here but a different Vue app!</a>
  15. </p>
  16. </div>
  17. );
  18. },
  19. });