Computed properties are great way to cache data. These cache data only change when the reactive properties it depends on changes. Let's have a look at how we can define…
Convert ref() states to reactive() states in Vue.js | Example
ref() creates a reactive object for whatever variable we pass it in. However, it is only preferable if we're dealing with some primitive values. Like strings, numbers, boolean, etc. For…
Convert a component from Options API to Composition API | Vue.js | Vue 3 | Example
Composition API has several advantages over the Options API. I've written an article on what they are. Here in this article, I'm showing an example on how we can convert…
Advantages of using Composition API over Options API in Vue 3 (Vue.js) | Example
Vue 3 came with Composition API, while still keeping support for the Options API. Vue 3 also recommends the use of Composition over Options API. Let's have a look at…