We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// your answers <script setup lang="ts"> import { reactive } from "vue" function useCount() { const state = reactive({ count: 0, }) function update(value: number) { state.count = value } return { state, update, } } // Make ensure the destructure without losing reactivity const { state: { count }, update } = $(useCount()) </script> <template> <div> <p> <span @click="update(count-1)">-</span> {{ count }} <span @click="update(count+1)">+</span> </p> </div> </template>
The text was updated successfully, but these errors were encountered:
@wegi8
hi~ Could you plz explain where does this $ come from?
$
Sorry, something went wrong.
@wegi8 hi~ Could you plz explain where does this $ come from?
hi~
Could you plz explain where does this $ come from?
@erica-plus It's just a grammar sugar on Vue.
thank you very much! 🤣 i forgot this chapter: 响应性语法糖
$ grammar sugar donesn't work anymore even if I switch the version to 3.3.X
No branches or pull requests
The text was updated successfully, but these errors were encountered: