mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 12:13:11 +00:00
Update lists-and-keys.md: eliminate huge space between properties (#2980)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user