Oct 9, 2019 in Vue.JS
Q: What is key in Vue.js?

1 Answer

0 votes
Oct 9, 2019

In order to render DOM elements more efficiently, Vue.js reuses the elements instead of creating them from scratch every time. This default mode is efficient, but in some cases it may causes problems. For example, if you try to render the same input element in both v-if and v-else blocks then it holds the previous value as below:

Click here to read more about Vue JS
Click here to read more about Insurance