Match-id-8c8edc92392dcae4fa155fe80ecae735f6f4d0fc

This commit is contained in:
* 2023-01-10 19:55:01 +08:00
parent 32310f97ed
commit 4712e8a621
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class Component<P, S, C> {
this.context = context;
}
setState(state: S) {
setState(state: S, callback?: any) {
if (isDev) {
console.error('Cant not call `this.setState` in the constructor of class component, it will do nothing');
}