Browse Source

Update lists-and-keys.md: eliminate huge space between properties (#2980)

main
a-oz 5 years ago
committed by GitHub
parent
commit
4e0e1eb870
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      content/docs/lists-and-keys.md

3
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>

Loading…
Cancel
Save