Vue 3 Reactive vs Ref

preview_player
Показать описание
Vue 3 Reactive vs Ref by using the Composition API. This video takes a closer look at reactive data. There are basically two ways on how you can create reactive data with the Composition API and one question that keeps coming up is when we can use Ref and Reactive to declare a reactive data property. Or what is better? Using Ref or Reactive? Stick around!

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
⏩ Table of Contents
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

0:00 What's happening
0:58 Why reactive data?
2:41 Using Ref and Reactive
5:03 Reactive vs Ref

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
⭐ That might interest you too
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
🎓 Tutorials for Beginners and Advanced
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
👫 Support
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
📣 Social Media and Websites
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
📌 About Channel/Me
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Copyright by Mario Laurich / webnoob

#vuejs #vue3 #webnoob
Рекомендации по теме
Комментарии
Автор

Jetzt hat es endlich auch mal klick gemacht, was dieses ref() in der composition api ist. Danke Mario und Grüße aus Leipzig :)

lukasluftlaufer
Автор

Great explanation! Short and direct to the point. Thanks Mario!

rafapioli
Автор

This is a very good example about ref and reactive, now I underdstand the differences, thank you mario for the explanations !!!

maskman
Автор

2:30 Of course it didn't work, you tried to re-assign a constant ;)

jeffrey
Автор

This video and that one were realy useful for me. Thanks!

МихаилПетровичЗубенко-рв
Автор

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.

dasten
Автор

great video really help me clear thing about ref and reactive.

MarkKevinBesingaWebDev
Автор

Can i import this as a global, or its a nice practice just import it on every components, Thank you!

kobekobz
Автор

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

cmlaplatacommunitymanagerl
Автор

10 Euro wette du kommst aus Sachsen wie ich :D Danke fuer das video

hago
Автор

Where r u from dude? what happen with ur accent

abdi_pie