teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

質問の解答

2020/11/03 09:41

投稿

aiai8976
aiai8976

スコア112

title CHANGED
File without changes
body CHANGED
@@ -21,7 +21,7 @@
21
21
 
22
22
  {information.map((item, index) => {
23
23
  return (
24
- <Card a11yTitle={index}>
24
+ <Card a11yTitle={index} key={item.title}>
25
25
  <Box>
26
26
  <CardBody>
27
27
  {item.info} //正しいinfo

2

質問の解答

2020/11/03 09:41

投稿

aiai8976
aiai8976

スコア112

title CHANGED
File without changes
body CHANGED
@@ -19,9 +19,9 @@
19
19
  }
20
20
  const [show, setShow] = React.useState();
21
21
 
22
- {information.map((item) => {
22
+ {information.map((item, index) => {
23
23
  return (
24
- <Card>
24
+ <Card a11yTitle={index}>
25
25
  <Box>
26
26
  <CardBody>
27
27
  {item.info} //正しいinfo

1

質問の解答

2020/11/03 08:54

投稿

aiai8976
aiai8976

スコア112

title CHANGED
File without changes
body CHANGED
@@ -17,6 +17,7 @@
17
17
  {'title': 'hogee', 'info': 'hogee'},
18
18
  {'title': 'fuga', 'info': 'fuga'}
19
19
  }
20
+ const [show, setShow] = React.useState();
20
21
 
21
22
  {information.map((item) => {
22
23
  return (