Skip to content

Commit 75f2310

Browse files
Update introduction.md (#796)
* Update introduction.md I was working through the examples in Vue 3 and got the following error: ``` Elements in iteration expect to have 'v-bind:key' directives vue/require-v-for-key ``` Adding the key removes this error. I'm new to Vue (coming from React) and don't know if I'm missing something. * Update src/guide/introduction.md Co-authored-by: Natalia Tepluhina <[email protected]>
1 parent 6c22374 commit 75f2310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ There are quite a few other directives, each with its own special functionality.
189189
```html
190190
<div id="list-rendering">
191191
<ol>
192-
<li v-for="todo in todos">
192+
<li v-for="todo in todos" v-bind:key="todo.text">
193193
{{ todo.text }}
194194
</li>
195195
</ol>

0 commit comments

Comments
 (0)