chore: init

This commit is contained in:
Anthony Fu committed 2021-11-02 11:10:42 +08:00
commit 0fb1b4e8dd
20 files changed
+7475

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
export function useCount() {
const count = useState('count', () => Math.round(Math.random() * 20))
function inc() {
count.value += 1
}
function dec() {
count.value -= 1
}
return {
count,
inc,
dec,
}
}