Match-id-c7b7cf761030b63184686c2e8a649010f222235e

This commit is contained in:
* 2022-02-19 14:13:30 +08:00 committed by *
parent a59ffea5bc
commit f0ffc90fcf
1 changed files with 8 additions and 1 deletions

View File

@ -4,11 +4,18 @@
class Component<P,S,C> {
props: P;
context: C;
state: S;
state: S | null;
refs: any;
setState: any;
forceUpdate: any;
constructor(props: P, context: C) {
this.props = props;
this.context = context;
this.state = null;
this.refs = null;
this.setState = null;
this.forceUpdate = null;
}
}