Skip to content

Commit

Permalink
Use increment and decrement operators
Browse files Browse the repository at this point in the history
  • Loading branch information
morinokami committed Dec 9, 2023
1 parent a215a9f commit 4904274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/framework-vue/src/components/Counter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import { ref } from 'vue';
const count = ref(0);
const add = () => (count.value = count.value + 1);
const subtract = () => (count.value = count.value - 1);
const add = () => count.value++;
const subtract = () => count.value--;
</script>

<template>
Expand Down

0 comments on commit 4904274

Please sign in to comment.