回答編集履歴
1
書式の改善
test
CHANGED
@@ -20,11 +20,11 @@
|
|
20
20
|
|
21
21
|
```
|
22
22
|
|
23
|
-
<List key={0} todo='aaa' index={0} /> <!-- state
|
23
|
+
<List key={0} todo='aaa' index={0} /> <!-- state = { active: false } -->
|
24
24
|
|
25
|
-
<List key={1} todo='bbb' index={1} /> <!-- state
|
25
|
+
<List key={1} todo='bbb' index={1} /> <!-- state = { active: true } -->
|
26
26
|
|
27
|
-
<List key={2} todo='ccc' index={2} /> <!-- state
|
27
|
+
<List key={2} todo='ccc' index={2} /> <!-- state = { active: false } -->
|
28
28
|
|
29
29
|
```
|
30
30
|
|
@@ -36,9 +36,9 @@
|
|
36
36
|
|
37
37
|
```
|
38
38
|
|
39
|
-
<List key={0} todo='bbb' index={0} /> <!-- state
|
39
|
+
<List key={0} todo='bbb' index={0} /> <!-- state = { active: false } -->
|
40
40
|
|
41
|
-
<List key={1} todo='ccc' index={1} /> <!-- state
|
41
|
+
<List key={1} todo='ccc' index={1} /> <!-- state = { active: true } -->
|
42
42
|
|
43
43
|
```
|
44
44
|
|