Skip to content

Commit ce2dee3

Browse files
Jaehlee11gaearon
authored andcommitted
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.
1 parent d49dfe7 commit ce2dee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/lists-and-keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function ListItem(props) {
153153
154154
function NumberList(props) {
155155
const numbers = props.numbers;
156-
const listItems = numbers.map((item) =>
156+
const listItems = numbers.map((number) =>
157157
// Wrong! The key should have been specified here:
158158
<ListItem value={number} />
159159
);

0 commit comments

Comments
 (0)