Skip to content

Commit deca14c

Browse files
committed
improve phrasing in conditonal key demo link
1 parent 42348d2 commit deca14c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/style-guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,7 @@ computed: {
17071707

17081708
**It's usually best to use `key` with `v-if` + `v-else`, if they are the same element type (e.g. both `<div>` elements).**
17091709

1710-
By default, Vue updates the DOM as efficiently as possible. That means when switching between elements of the same type, it simply patches the existing element, rather than removing it and adding a new one in its place. This can have [unintended side effects](https://jsfiddle.net/chrisvfritz/bh8fLeds/) if these elements should not actually be considered the same.
1710+
By default, Vue updates the DOM as efficiently as possible. That means when switching between elements of the same type, it simply patches the existing element, rather than removing it and adding a new one in its place. This can have [unintended consequences](https://jsfiddle.net/chrisvfritz/bh8fLeds/) if these elements should not actually be considered the same.
17111711

17121712
{% raw %}<div class="style-example example-bad">{% endraw %}
17131713
#### Bad

0 commit comments

Comments
 (0)