回答編集履歴
2
誤字の修正
answer
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
---
|
8
8
|
|
9
|
-
|
9
|
+
型引数を調べた方法ですが、Visual Studio Code でマウスを React.Component に移動したら教えてくれました。正確には <P = {}, S = {}, SS = any> ですが、SS が何かは知りません。
|
10
10
|
props や this.state.count のところにもちゃんとエラーが出てますね。
|
11
11
|
|
12
12
|

|
1
追記
answer
CHANGED
@@ -2,4 +2,11 @@
|
|
2
2
|
|
3
3
|
```TypeScript
|
4
4
|
export class SubComponent extends React.Component<{}, IState> {
|
5
|
-
```
|
5
|
+
```
|
6
|
+
|
7
|
+
---
|
8
|
+
|
9
|
+
肩引数を調べた方法ですが、Visual Studio Code でマウスを React.Component に移動したら教えてくれました。正確には <P = {}, S = {}, SS = any> ですが、SS が何かは知りません。
|
10
|
+
props や this.state.count のところにもちゃんとエラーが出てますね。
|
11
|
+
|
12
|
+

|