回答編集履歴
1
追記
answer
CHANGED
|
@@ -3,8 +3,15 @@
|
|
|
3
3
|
なので、以下のソースで対応しました。
|
|
4
4
|
|
|
5
5
|
クリック時にイベント処理(this.handleClick)を行えています。
|
|
6
|
+
また、コンストラクターへ以下の記述でメソッドのbindも必要でした・・。
|
|
6
7
|
|
|
8
|
+
|
|
7
9
|
```javascript
|
|
10
|
+
constructor(props) {
|
|
11
|
+
...
|
|
12
|
+
this.handleClick = this.handleClick.bind(this)
|
|
13
|
+
}
|
|
14
|
+
|
|
8
15
|
// onRowSelectionでの対応
|
|
9
16
|
<Table onRowSelection={ this.handleClick }>
|
|
10
17
|
```
|