在写react+ts项目时候 vs报这个错误
constructor(props){
super(props);
this.state = store.getState();
}
换成
constructor(props:any){
super(props);
this.state = store.getState();
}
在写react+ts项目时候 vs报这个错误
constructor(props){
super(props);
this.state = store.getState();
}
换成
constructor(props:any){
super(props);
this.state = store.getState();
}