質問編集履歴
1
コード
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,9 +28,17 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
|
31
|
+
+ 67 handleUpdate (event) {
|
32
32
|
|
33
|
+
+ 68 const index = event.target.dataset.optionIndex
|
34
|
+
|
35
|
+
+ 69 const place = this.state.data[index]
|
36
|
+
|
37
|
+
+ >70 this.getData(place.id)
|
38
|
+
|
39
|
+
+ 71 ^ this.setState({ placeName: place.name })
|
40
|
+
|
33
|
-
|
41
|
+
+ 72 }
|
34
42
|
|
35
43
|
|
36
44
|
|