質問編集履歴

1

追記

2018/07/11 06:39

投稿

cheche0830
cheche0830

スコア187

test CHANGED
File without changes
test CHANGED
@@ -28,13 +28,13 @@
28
28
 
29
29
  console.log(33);
30
30
 
31
- this.test;//ここがエラー
31
+ this.test;
32
32
 
33
33
  }
34
34
 
35
35
  test() {
36
36
 
37
- console.log(33333333);
37
+ console.log(33333333);//ここ無反応
38
38
 
39
39
  }
40
40
 
@@ -44,7 +44,7 @@
44
44
 
45
45
  return (
46
46
 
47
- <h1 onClick={this.click}>Hello World</h1>
47
+ <h1 onClick={this.click.bind(this)}>Hello World</h1>
48
48
 
49
49
  )
50
50