Uff, my mistake. You're right, but that doesn't change anything in the end. Vue cannot detect changes and can’t update the DOM even if we use var or let on a variable. We have to use Ref or Reactive 🤷♂️
7:06 but you can also put an object inside ref(), so your argumentation kind of falls flat. As far as I can tell, the only downside is that you have to write `.value` every time you want to access a property of it. Well, in my opinion it's not that bad, because since we have to do that with primitive types anyway, it at least is consistent.
Hello! I love your videos. I try to use REF like an object and is working. If i understand fine you say that REF can't be an object, and is working for me. Just commment :) I'm from Argentina and sometimes i don't understand well some words. Thanks for the video!! I lear how to use reactive
Well, you could use ref() for creating a reactive object, but under the hood, it's just calling reactive() so you can also directly use reactive(). Thanks for your feedback ;-)
Jetzt hat es endlich auch mal klick gemacht, was dieses ref() in der composition api ist. Danke Mario und Grüße aus Leipzig :)
Great explanation! Short and direct to the point. Thanks Mario!
Big thanks for your feedback 🙏💚
This is a very good example about ref and reactive, now I underdstand the differences, thank you mario for the explanations !!!
My pleasure, thank you 🙏💚
2:30 Of course it didn't work, you tried to re-assign a constant ;)
Uff, my mistake. You're right, but that doesn't change anything in the end. Vue cannot detect changes and can’t update the DOM even if we use var or let on a variable.
We have to use Ref or Reactive 🤷♂️
thanks, short and precise
This video and that one were realy useful for me. Thanks!
Thanks for your feedback. Happy Coding!
7:06 but you can also put an object inside ref(), so your argumentation kind of falls flat.
As far as I can tell, the only downside is that you have to write `.value` every time you want to access a property of it.
Well, in my opinion it's not that bad, because since we have to do that with primitive types anyway, it at least is consistent.
great video really help me clear thing about ref and reactive.
Can i import this as a global, or its a nice practice just import it on every components, Thank you!
You can use the Composition API on every component and as composable functions. That’s perfect for reusability. 🙂
Hello! I love your videos. I try to use REF like an object and is working. If i understand fine you say that REF can't be an object, and is working for me. Just commment :)
I'm from Argentina and sometimes i don't understand well some words.
Thanks for the video!! I lear how to use reactive
Well, you could use ref() for creating a reactive object, but under the hood, it's just calling reactive() so you can also directly use reactive(). Thanks for your feedback ;-)
10 Euro wette du kommst aus Sachsen wie ich :D Danke fuer das video
Korrekt! ;-)
Where r u from dude? what happen with ur accent