Vue · Middle · Question 2 of 75

How does watchEffect differ from watch?

Explanation

watchEffect is concise when the effect uses the same state it depends on. watch gives precise control: only listed sources trigger it, and it can be immediate or once.

Further reading

Problem with a question

Vue · Middle · question 2

Test yourself

Take the Vue · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz