Browse Source

Update lists-and-keys.md (#8090)

There is mismatching variable name both definition and usage.
In line 156, an argument name called item is change to match the usage in line 158.
main
Jae Hun Lee 8 years ago
committed by Dan Abramov
parent
commit
6e1411c4f1
  1. 2
      docs/lists-and-keys.md

2
docs/lists-and-keys.md

@ -153,7 +153,7 @@ function ListItem(props) {
function NumberList(props) {
const numbers = props.numbers;
const listItems = numbers.map((item) =>
const listItems = numbers.map((number) =>
// Wrong! The key should have been specified here:
<ListItem value={number} />
);

Loading…
Cancel
Save