Browse Source
Update lists-and-keys.md: eliminate huge space between properties (#2980)
main
a-oz
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
content/docs/lists-and-keys.md
|
|
@ -185,8 +185,7 @@ function NumberList(props) { |
|
|
|
const numbers = props.numbers; |
|
|
|
const listItems = numbers.map((number) => |
|
|
|
// Correct! Key should be specified inside the array. |
|
|
|
<ListItem key={number.toString()} |
|
|
|
value={number} /> |
|
|
|
<ListItem key={number.toString()} value={number} /> |
|
|
|
); |
|
|
|
return ( |
|
|
|
<ul> |
|
|
|