質問編集履歴
1
例を静的メソッドに変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,8 +34,6 @@
|
|
34
34
|
|
35
35
|
getMessage(){
|
36
36
|
|
37
|
-
const B = new B
|
38
|
-
|
39
37
|
const message = B.returnMessage()
|
40
38
|
|
41
39
|
return message
|
@@ -62,7 +60,7 @@
|
|
62
60
|
|
63
61
|
class B extends React.Component {
|
64
62
|
|
65
|
-
returnMessage(){
|
63
|
+
static returnMessage(){
|
66
64
|
|
67
65
|
return 'hoge'
|
68
66
|
|