質問編集履歴

1

コード

2020/03/25 10:28

投稿

riru12333
riru12333

スコア4

test CHANGED
File without changes
test CHANGED
@@ -28,9 +28,17 @@
28
28
 
29
29
 
30
30
 
31
- ![イメージ説明](80fde98d5e8f0013ee3db4067a6d98d0.jpeg)
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