回答編集履歴

1

テキスト修正

2019/10/10 05:12

投稿

jun68ykt
jun68ykt

スコア9058

test CHANGED
@@ -68,19 +68,13 @@
68
68
 
69
69
  render() {
70
70
 
71
- const { classes, selected } = this.props;
71
+ const { classes, selected, onClick } = this.props;
72
72
 
73
73
  classes.push(selected ? 'selected' : 'not-selected');
74
74
 
75
75
  return (
76
76
 
77
- <div
78
-
79
- className={classes.join(' ')}
77
+ <div className={classes.join(' ')} onClick={onClick}>
80
-
81
- onClick={this.props.onClick}
82
-
83
- >
84
78
 
85
79
  {this.props.textContent}
86
80