从嘉

Results 16 issues of 从嘉

```vue // your answers import { shallowRef, watch } from "vue" const state = shallowRef({ count: 1 }) // Does NOT trigger watch(state, () => { console.log("State.count become ", state.value.count)...

answer
en
6

```vue // your answers import { ref, watch } from "vue" const count = ref(0) /** * Challenge 1: Watch once * Make sure the watch callback only triggers once...

answer
en
5

```vue // your answers import { ref, computed } from "vue" const count = ref(1) const plusOne = computed({ get() { return count.value + 1 }, set() { count.value ++...

answer
en
4

```vue // 你的答案 import { reactive, toRefs } from "vue" function useCount() { const state = reactive({ count: 0, }) function update(value: number) { state.count = value } return {...

answer
zh-CN
3

```vue // 你的答案 import { ref, Ref, reactive, isRef, unref, toRef } from "vue" const initial = ref(10) const count = ref(0) // 挑战 1: 更新 ref function update(value) {...

answer
zh-CN
2

```vue // your answers import { ref } from "vue" const msg = ref("Hello World") {{ msg }} ```

answer
en
1