报错如下
index.js:1 Warning: Can’t call setState on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to this.state
directly or define a state = {};
class property with the desired state in the App component.
是因为版本更新了么 我需要设置什么