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.
This commit is contained in:
Jae Hun Lee
2016-10-27 00:17:21 +11:00
committed by Dan Abramov
parent d49dfe7da4
commit ce2dee32fd

View File

@@ -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} />
);