<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Vue 3 on HuyDQ&#39;s Blog</title>
    <link>https://robinhuy.github.io/tags/vue-3/</link>
    <description>Recent content in Vue 3 on HuyDQ&#39;s Blog</description>
    <image>
      <url>https://robinhuy.github.io/icons/dragon-thumbnail.png</url>
      <link>https://robinhuy.github.io/icons/dragon-thumbnail.png</link>
    </image>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Sat, 04 Feb 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://robinhuy.github.io/tags/vue-3/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Ref và Reactive trong Vue 3</title>
      <link>https://robinhuy.github.io/blog/ref-va-reactive-trong-vue-3/</link>
      <pubDate>Sat, 04 Feb 2023 00:00:00 +0000</pubDate>
      
      <guid>https://robinhuy.github.io/blog/ref-va-reactive-trong-vue-3/</guid>
      <description>Trong Vue 3 có hai Reactivity API mà dễ làm newbie gây nhầm lẫn khi sử dụng đó là ref và reactive. Bài viết này mình sẽ hướng dẫn cách sử dụng 2 API trên, kèm một số so sánh với Vue 2 cho những ai mới chuyển từ Vue 2 lên Vue 3.
Ref Ví dụ đơn giản khi thay đổi một reactive state bằng Vue 2:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  &amp;lt;script&amp;gt; export default {  data() {  return {  count: 0,  };  },   methods: {  increaseCount() {  this.</description>
    </item>
    
  </channel>
</rss>
