S
S
Slavik2021-01-16 21:24:12
Vue.js
Slavik, 2021-01-16 21:24:12

Difference of reactivity from data?

Good afternoon.
Why write like this?

const elem = reactive({
    count: 0
  })


What is the difference between reactive, refs and data? if you declare a variable in data, there will also be a rerender

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sklyarov, 2021-01-16
@Makro_Slavik

https://habr.com/en/post/522916/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question