質問編集履歴
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
<component2 testProps={this.state} />
|
40
40
|
|
41
|
-
<component3 testFunc={this.
|
41
|
+
<component3 testFunc={this.func} />
|
42
42
|
|
43
43
|
</div>
|
44
44
|
|
@@ -54,9 +54,15 @@
|
|
54
54
|
|
55
55
|
```
|
56
56
|
|
57
|
+
static propTypes = {
|
58
|
+
|
59
|
+
testProps: PropTypes.bool
|
60
|
+
|
61
|
+
}
|
62
|
+
|
57
63
|
this.state = (
|
58
64
|
|
59
|
-
test: this.props.hoge,
|
65
|
+
test: this.props.testProps.hoge,
|
60
66
|
|
61
67
|
);
|
62
68
|
|