in Vue.JS by
Q:
What is key in Vue.js?

► Click here to show 1 Answer

0 votes
by

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:

Vue JS
Learn More with Madanswer

Related questions

0 votes
asked Oct 7, 2019 in Vue.JS by Tate
...