質問編集履歴

3

誤字

2018/11/08 03:19

投稿

MakotoKato
MakotoKato

スコア18

test CHANGED
File without changes
test CHANGED
@@ -56,7 +56,7 @@
56
56
 
57
57
  return (
58
58
 
59
- <Child parentMethod={() => this.updateState} />
59
+ <Child parentMethod={(token) => this.updateState(token)} />
60
60
 
61
61
  );
62
62
 

2

誤字

2018/11/08 03:19

投稿

MakotoKato
MakotoKato

スコア18

test CHANGED
File without changes
test CHANGED
@@ -56,7 +56,7 @@
56
56
 
57
57
  return (
58
58
 
59
- <Child parentMethod={this.updateState} />
59
+ <Child parentMethod={() => this.updateState} />
60
60
 
61
61
  );
62
62
 

1

<Child parentMethod={this.updateState} />追加

2018/11/08 03:18

投稿

MakotoKato
MakotoKato

スコア18

test CHANGED
File without changes
test CHANGED
@@ -56,7 +56,7 @@
56
56
 
57
57
  return (
58
58
 
59
- <View>hogehoge</View>
59
+ <Child parentMethod={this.updateState} />
60
60
 
61
61
  );
62
62