Skip to content

Commit e03c458

Browse files
authored
Adds key to indicate best practice in README
1 parent 452e1b3 commit e03c458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ It's a single HTML file, and there's no build or tooling. You can edit it with n
177177
<${Header} name="ToDo's (${page})" />
178178
<ul>
179179
${todos.map(todo => html`
180-
<li>${todo}</li>
180+
<li key="${todo}">${todo}</li>
181181
`)}
182182
</ul>
183183
<button onClick=${() => this.addTodo()}>Add Todo</button>

0 commit comments

Comments
 (0)