0 votes
in VueJS by
What is key in Vue.js?

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:

Related questions

0 votes
asked Oct 7, 2019 in VueJS by Tate
0 votes
asked Oct 7, 2019 in VueJS by Tate
...